Completed
Pull Request — master (#30)
by Bill
01:45
created
src/Codor/Sniffs/Classes/ClassLengthSniff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.