File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 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'."
664664(defun php-current-class ()
665665 " Insert current class name if cursor in class context."
666666 (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))))
670669
671670;;;### autoload
672671(defun php-current-namespace ()
673672 " Insert current namespace if cursor in namespace context."
674673 (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))))
678676
679677;;;### autoload
680678(defun php-copyit-fqsen ()
You can’t perform that action at this time.
0 commit comments