Commit 6af84c2 1 parent 878e313 commit 6af84c2 Copy full SHA for 6af84c2
File tree 1 file changed +4
-6
lines changed
1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -664,17 +664,15 @@ Currently there are `php-mode' and `php-ts-mode'."
664
664
(defun php-current-class ()
665
665
" Insert current class name if cursor in class context."
666
666
(interactive )
667
- (let ((matched (php-get-current-element php--re-classlike-pattern)))
668
- (when matched
669
- (insert (concat matched php-class-suffix-when-insert)))))
667
+ (when-let* ((matched (php-get-current-element php--re-classlike-pattern)))
668
+ (insert (concat matched php-class-suffix-when-insert))))
670
669
671
670
;;;### autoload
672
671
(defun php-current-namespace ()
673
672
" Insert current namespace if cursor in namespace context."
674
673
(interactive )
675
- (let ((matched (php-get-current-element php--re-namespace-pattern)))
676
- (when matched
677
- (insert (concat matched php-namespace-suffix-when-insert)))))
674
+ (when-let* ((matched (php-get-current-element php--re-namespace-pattern)))
675
+ (insert (concat matched php-namespace-suffix-when-insert))))
678
676
679
677
;;;### autoload
680
678
(defun php-copyit-fqsen ()
You can’t perform that action at this time.
0 commit comments