| @@ -20,7 +20,7 @@ discard block | ||
| 20 | 20 | */ | 
| 21 | 21 | public function register() | 
| 22 | 22 |      { | 
| 23 | - return [T_FUNCTION]; | |
| 23 | + return [ T_FUNCTION ]; | |
| 24 | 24 | } | 
| 25 | 25 | |
| 26 | 26 | /** | 
| @@ -34,14 +34,14 @@ discard block | ||
| 34 | 34 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) | 
| 35 | 35 |      { | 
| 36 | 36 | $tokens = $phpcsFile->getTokens(); | 
| 37 | - $token = $tokens[$stackPtr]; | |
| 37 | + $token = $tokens[ $stackPtr ]; | |
| 38 | 38 | |
| 39 | - $openParenIndex = $token['parenthesis_opener']; | |
| 40 | - $closedParenIndex = $token['parenthesis_closer']; | |
| 39 | + $openParenIndex = $token[ 'parenthesis_opener' ]; | |
| 40 | + $closedParenIndex = $token[ 'parenthesis_closer' ]; | |
| 41 | 41 | |
| 42 | 42 | $numberOfParameters = 0; | 
| 43 | -        for ($index=$openParenIndex+1; $index <= $closedParenIndex; $index++) { | |
| 44 | -            if ($tokens[$index]['type'] == 'T_VARIABLE') { | |
| 43 | +        for ($index = $openParenIndex + 1; $index <= $closedParenIndex; $index++) { | |
| 44 | +            if ($tokens[ $index ][ 'type' ] == 'T_VARIABLE') { | |
| 45 | 45 | $numberOfParameters++; | 
| 46 | 46 | } | 
| 47 | 47 | } |