@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function register() |
| 23 | 23 | { |
| 24 | - return [T_CLASS]; |
|
| 24 | + return [ T_CLASS ]; |
|
| 25 | 25 | } |
| 26 | 26 | |
| 27 | 27 | /** |
@@ -35,8 +35,8 @@ discard block |
||
| 35 | 35 | public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr) |
| 36 | 36 | { |
| 37 | 37 | $tokens = $phpcsFile->getTokens(); |
| 38 | - $token = $tokens[$stackPtr]; |
|
| 39 | - $classLength = $token['scope_closer'] - $token['scope_opener'] - 2; |
|
| 38 | + $token = $tokens[ $stackPtr ]; |
|
| 39 | + $classLength = $token[ 'scope_closer' ] - $token[ 'scope_opener' ] - 2; |
|
| 40 | 40 | |
| 41 | 41 | if ($classLength > $this->maxLength) { |
| 42 | 42 | $phpcsFile->addError("Class is {$classLength} lines. Must be {$this->maxLength} lines or fewer.", $stackPtr); |