@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | 'PhpParser\\Node\\Param', |
79 | 79 | 'PhpParser\\Node\\Expr\\Variable', |
80 | 80 | 'PhpParser\\Node\\Name', |
81 | - ],[ |
|
81 | + ], [ |
|
82 | 82 | // function setOk(?bool $ok): self { $this->isOk = $ok; return $this; } |
83 | 83 | 'PhpParser\\Node\\Stmt\\ClassMethod', |
84 | 84 | 'PhpParser\\Node\\Stmt\\Expression', |
@@ -98,13 +98,13 @@ discard block |
||
98 | 98 | */ |
99 | 99 | public function detects($node) |
100 | 100 | { |
101 | - if (! $node instanceof ClassMethod) { |
|
101 | + if (!$node instanceof ClassMethod) { |
|
102 | 102 | return null; |
103 | 103 | } |
104 | 104 | |
105 | 105 | // build a fingerprint of the given method |
106 | 106 | $fingerprintOfMethod = []; |
107 | - iterate_over_node($node, function ($node) use (&$fingerprintOfMethod) { |
|
107 | + iterate_over_node($node, function($node) use (&$fingerprintOfMethod) { |
|
108 | 108 | // avoid identifier (php-parser:^4) |
109 | 109 | if ($node instanceof Identifier) { |
110 | 110 | return; |