Completed
Pull Request — master (#70)
by Bill
01:53
created
src/Codor/Sniffs/Syntax/NullCoalescingSniff.php 1 patch
Spacing   +4 added lines, -4 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_ISSET];
17
+        return [ T_ISSET ];
18 18
     }
19 19
 
20 20
     /**
@@ -49,15 +49,15 @@  discard block
 block discarded – undo
49 49
         $semiColinFound = false;
50 50
 
51 51
         while (true) {
52
-            if ($tokens[$index]['type'] == 'T_SEMICOLON') {
52
+            if ($tokens[ $index ][ 'type' ] == 'T_SEMICOLON') {
53 53
                 break;
54 54
             }
55 55
 
56
-            if ($tokens[$index]['type'] == 'T_INLINE_THEN') {
56
+            if ($tokens[ $index ][ 'type' ] == 'T_INLINE_THEN') {
57 57
                 $questionMarkFound = true;
58 58
             }
59 59
 
60
-            if ($tokens[$index]['type'] == 'T_INLINE_ELSE') {
60
+            if ($tokens[ $index ][ 'type' ] == 'T_INLINE_ELSE') {
61 61
                 $semiColinFound = true;
62 62
             }
63 63
             $index++;
Please login to merge, or discard this patch.