Skip to content

Commit ee94277

Browse files
committed
Moar PHPCS fixes. The report I have been working against was quite outdated :)
1 parent 130a2d0 commit ee94277

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WordPressVIPMinimum/Sniffs/Variables/ServerVariablesSniff.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,10 @@ public function process( File $phpcsFile, $stackPtr ) {
5555
return;
5656
}
5757

58-
$variableNamePtr = $phpcsFile->findNext( array( T_CONSTANT_ENCAPSED_STRING ), ($stackPtr + 1), null, false, null, true );
59-
$variableName = str_replace( "'", '', $tokens[ $variableNamePtr ]['content'] );
58+
$variableNamePtr = $phpcsFile->findNext( array( T_CONSTANT_ENCAPSED_STRING ), ( $stackPtr + 1 ), null, false, null, true );
59+
$variableName = str_replace( "'", '', $tokens[ $variableNamePtr ]['content'] );
6060

61-
if ( false === in_array( $variableName, $this->restrictedVariables , true ) ) {
61+
if ( false === in_array( $variableName, $this->restrictedVariables, true ) ) {
6262
// Not the variable we are looking for.
6363
return;
6464
}

0 commit comments

Comments
 (0)