Skip to content

Commit

Permalink
WhiteSpace/FunctionSpacing: minor tweak
Browse files Browse the repository at this point in the history
The parent `process()` method is a `void` method, so this should be too.
  • Loading branch information
jrfnl committed Nov 4, 2023
1 parent 75710b8 commit bac8ca3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Yoast/Sniffs/WhiteSpace/FunctionSpacingSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,14 @@ final class FunctionSpacingSniff extends Squiz_FunctionSpacingSniff {
* @param File $phpcsFile The file being scanned.
* @param int $stackPtr The position of the current token in the stack passed in $tokens.
*
* @return void|int Optionally returns stack pointer to skip to.
* @return void
*/
public function process( File $phpcsFile, $stackPtr ) {
// Check that the function is nested in an OO structure (class, trait, interface, enum).
if ( Conditions::hasCondition( $phpcsFile, $stackPtr, Tokens::$ooScopeTokens ) === false ) {
return;
}

return parent::process( $phpcsFile, $stackPtr );
parent::process( $phpcsFile, $stackPtr );
}
}

0 comments on commit bac8ca3

Please sign in to comment.