From 943eae45fe7da50415da5f030db388567521786e Mon Sep 17 00:00:00 2001 From: mscherer Date: Tue, 19 Oct 2021 19:59:59 +0200 Subject: [PATCH] Fix up CS --- PSR2R/Sniffs/Commenting/DocBlockReturnTagSniff.php | 3 +-- PSR2R/Sniffs/Methods/MethodDeclarationSniff.php | 1 + 2 files changed, 2 insertions(+), 2 deletions(-) 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. } /**