diff --git a/PSR2R/Sniffs/Commenting/DocBlockReturnTagSniff.php b/PSR2R/Sniffs/Commenting/DocBlockReturnTagSniff.php index 22a633c..354f516 100644 --- a/PSR2R/Sniffs/Commenting/DocBlockReturnTagSniff.php +++ b/PSR2R/Sniffs/Commenting/DocBlockReturnTagSniff.php @@ -29,6 +29,7 @@ public function __construct() { * @return void */ protected function processTokenOutsideScope(File $phpcsFile, $stackPtr) { + // Nothing to do here. } /** @@ -106,8 +107,6 @@ protected function processTokenWithinScope(File $phpcsFile, $stackPtr, $currScop if ($phpcsFile->fixer->enabled === true) { $phpcsFile->fixer->replaceToken($commentWithReturn, ''); } - - return; } } diff --git a/PSR2R/Sniffs/Methods/MethodDeclarationSniff.php b/PSR2R/Sniffs/Methods/MethodDeclarationSniff.php index 2deefcf..d80f6e1 100644 --- a/PSR2R/Sniffs/Methods/MethodDeclarationSniff.php +++ b/PSR2R/Sniffs/Methods/MethodDeclarationSniff.php @@ -42,6 +42,7 @@ public function __construct() { * @return void */ protected function processTokenOutsideScope(File $phpcsFile, $stackPtr) { + // Nothing to do here. } /**