Skip to content

Commit 5e805d6

Browse files
authored
Merge pull request #733 from Automattic/fix/cs
2 parents 8953e4a + c56ce51 commit 5e805d6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

WordPressVIPMinimum/Sniffs/Classes/DeclarationCompatibilitySniff.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ protected function processTokenWithinScope( File $phpcsFile, $stackPtr, $currSco
291291
return;
292292
}
293293
}
294-
$i++;
294+
++$i;
295295
}
296296
}
297297

WordPressVIPMinimum/Sniffs/Compatibility/ZoninatorSniff.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,11 +80,11 @@ public function process_token( $stackPtr ) {
8080
/**
8181
* Removes the quotation marks around T_CONSTANT_ENCAPSED_STRING.
8282
*
83-
* @param string $string T_CONSTANT_ENCAPSED_STRING containing wrapping quotation marks.
83+
* @param string $text_string T_CONSTANT_ENCAPSED_STRING containing wrapping quotation marks.
8484
*
8585
* @return string String w/o wrapping quotation marks.
8686
*/
87-
public function remove_wrapping_quotation_marks( $string ) {
88-
return trim( str_replace( '"', "'", $string ), "'" );
87+
public function remove_wrapping_quotation_marks( $text_string ) {
88+
return trim( str_replace( '"', "'", $text_string ), "'" );
8989
}
9090
}

WordPressVIPMinimum/Sniffs/Hooks/AlwaysReturnInFilterSniff.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,9 +218,9 @@ private function processFunctionBody( $stackPtr ) {
218218

219219
while ( $returnTokenPtr ) {
220220
if ( $this->isInsideIfConditonal( $returnTokenPtr ) ) {
221-
$insideIfConditionalReturn++;
221+
++$insideIfConditionalReturn;
222222
} else {
223-
$outsideConditionalReturn++;
223+
++$outsideConditionalReturn;
224224
}
225225
if ( $this->isReturningVoid( $returnTokenPtr ) ) {
226226
$message = 'Please, make sure that a callback to `%s` filter is returning void intentionally.';

0 commit comments

Comments
 (0)