Skip to content

Commit

Permalink
Various: remove some redundant return statements
Browse files Browse the repository at this point in the history
... when the `return` is at the end of the function without a value, and therefore not needed.
  • Loading branch information
jrfnl committed Oct 29, 2023
1 parent cbd6fd5 commit 8b407f7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
2 changes: 0 additions & 2 deletions src/Sniffs/AbstractScopeSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ final public function process(File $phpcsFile, $stackPtr)
return min($skipTokens);
}

return;

}//end process()


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ protected function processMemberVar(File $phpcsFile, $stackPtr)
return $endOfStatement;
}

return;

}//end processMemberVar()


Expand Down
1 change: 0 additions & 1 deletion tests/Standards/AbstractSniffUnitTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,6 @@ public function generateFailureMessages(LocalFile $file)
*/
public function setCliValues($filename, $config)
{
return;

}//end setCliValues()

Expand Down

0 comments on commit 8b407f7

Please sign in to comment.