From 2a0480cbc10768d7db16dc82f1ca4d9441d6a543 Mon Sep 17 00:00:00 2001 From: Klaus Purer Date: Sat, 13 Apr 2024 10:25:46 +0200 Subject: [PATCH] phpcs fixes --- .../Drupal/Sniffs/Commenting/FunctionCommentSniff.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php b/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php index 58737bc4..0c665dec 100644 --- a/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php +++ b/coder_sniffer/Drupal/Sniffs/Commenting/FunctionCommentSniff.php @@ -219,8 +219,8 @@ protected function processReturn(File $phpcsFile, $stackPtr, $commentStart) } else { $end = $tokens[$commentStart]['comment_closer']; } - } - } + }//end if + }//end foreach if ($return !== null) { $returnType = trim($tokens[($return + 2)]['content']); @@ -328,6 +328,7 @@ protected function processReturn(File $phpcsFile, $stackPtr, $commentStart) }//end if }//end if }//end if + $comment = ''; for ($i = ($return + 3); $i < $end; $i++) { if ($tokens[$i]['code'] === T_DOC_COMMENT_STRING) {