@@ -19,7 +19,7 @@ discard block |
||
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 |
||
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 | } |