Completed
Push — master ( b735aa...4d9fca )
by Bill
8s
created
src/Codor/Sniffs/Syntax/LinesAfterMethodSniff.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public function register(): array
16 16
     {
17
-        return [T_FUNCTION];
17
+        return [ T_FUNCTION ];
18 18
     }
19 19
 
20 20
     /**
@@ -27,16 +27,16 @@  discard block
 block discarded – undo
27 27
     public function process(PHP_CodeSniffer_File $phpcsFile, $stackPtr)
28 28
     {
29 29
         $tokens           = $phpcsFile->getTokens();
30
-        $endOfMethodIndex = $tokens[$stackPtr]['scope_closer'];
31
-        $endOfMethodLine  = $tokens[$endOfMethodIndex]['line'];
30
+        $endOfMethodIndex = $tokens[ $stackPtr ][ 'scope_closer' ];
31
+        $endOfMethodLine  = $tokens[ $endOfMethodIndex ][ 'line' ];
32 32
 
33 33
         $nextCodeLine = 0;
34
-        for ($index=$endOfMethodIndex + 1; $index <= count($tokens); $index++) {
35
-            $currentToken = $tokens[$index];
36
-            if ($currentToken['type'] == 'T_WHITESPACE') {
34
+        for ($index = $endOfMethodIndex + 1; $index <= count($tokens); $index++) {
35
+            $currentToken = $tokens[ $index ];
36
+            if ($currentToken[ 'type' ] == 'T_WHITESPACE') {
37 37
                 continue;
38 38
             }
39
-            $nextCodeLine = $currentToken['line'];
39
+            $nextCodeLine = $currentToken[ 'line' ];
40 40
             break;
41 41
         }
42 42
 
Please login to merge, or discard this patch.