Completed
Push — master ( 96488f...f8fcbd )
by Bill
02:16 queued 50s
created
src/Codor/Sniffs/Classes/ExtendsSniff.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
      */
20 20
     public function register(): array
21 21
     {
22
-        return [T_CLASS];
22
+        return [ T_CLASS ];
23 23
     }
24 24
 
25 25
     /**
@@ -46,10 +46,10 @@  discard block
 block discarded – undo
46 46
      */
47 47
     protected function handleToken($token)
48 48
     {
49
-        if ($token['type'] !== 'T_EXTENDS') {
49
+        if ($token[ 'type' ] !== 'T_EXTENDS') {
50 50
             return;
51 51
         }
52 52
         $warning = "Class extends another class - consider composition over inheritance.";
53
-        $this->phpcsFile->addWarning($warning, $token['line']);
53
+        $this->phpcsFile->addWarning($warning, $token[ 'line' ]);
54 54
     }
55 55
 }
Please login to merge, or discard this patch.