Skip to content

Commit

Permalink
Merge pull request #230 from paulschreiber/patch-1
Browse files Browse the repository at this point in the history
fix spelling of "returning"
  • Loading branch information
rebeccahum authored Oct 16, 2018
2 parents bfdb7de + 084026e commit 6844911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WordPressVIPMinimum/Sniffs/Filters/AlwaysReturnSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private function processFunctionBody( $stackPtr ) {
$outsideConditionalReturn++;
}
if ( $this->isReturningVoid( $returnTokenPtr ) ) {
$this->phpcsFile->AddWarning( sprintf( 'Please, make sure that a callback to `%s` filter is returnin void intentionally.', $filterName ), $functionBodyScopeStart, 'voidReturn' );
$this->phpcsFile->AddWarning( sprintf( 'Please, make sure that a callback to `%s` filter is returning void intentionally.', $filterName ), $functionBodyScopeStart, 'voidReturn' );
}
$returnTokenPtr = $this->phpcsFile->findNext(
array( T_RETURN ), // types.
Expand Down

0 comments on commit 6844911

Please sign in to comment.