Skip to content

Commit

Permalink
Merge pull request #733 from Automattic/fix/cs
Browse files Browse the repository at this point in the history
  • Loading branch information
GaryJones authored Jan 25, 2023
2 parents 8953e4a + c56ce51 commit 5e805d6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ protected function processTokenWithinScope( File $phpcsFile, $stackPtr, $currSco
return;
}
}
$i++;
++$i;
}
}

Expand Down
6 changes: 3 additions & 3 deletions WordPressVIPMinimum/Sniffs/Compatibility/ZoninatorSniff.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,11 @@ public function process_token( $stackPtr ) {
/**
* Removes the quotation marks around T_CONSTANT_ENCAPSED_STRING.
*
* @param string $string T_CONSTANT_ENCAPSED_STRING containing wrapping quotation marks.
* @param string $text_string T_CONSTANT_ENCAPSED_STRING containing wrapping quotation marks.
*
* @return string String w/o wrapping quotation marks.
*/
public function remove_wrapping_quotation_marks( $string ) {
return trim( str_replace( '"', "'", $string ), "'" );
public function remove_wrapping_quotation_marks( $text_string ) {
return trim( str_replace( '"', "'", $text_string ), "'" );
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -218,9 +218,9 @@ private function processFunctionBody( $stackPtr ) {

while ( $returnTokenPtr ) {
if ( $this->isInsideIfConditonal( $returnTokenPtr ) ) {
$insideIfConditionalReturn++;
++$insideIfConditionalReturn;
} else {
$outsideConditionalReturn++;
++$outsideConditionalReturn;
}
if ( $this->isReturningVoid( $returnTokenPtr ) ) {
$message = 'Please, make sure that a callback to `%s` filter is returning void intentionally.';
Expand Down

0 comments on commit 5e805d6

Please sign in to comment.