| Conditions | 3 |
| Paths | 4 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function resolve(Readable $readable, TokenInterface $token): void |
||
| 26 | { |
||
| 27 | [$name, $value, $group] = $this->info($token); |
||
| 28 | |||
| 29 | $this->setToken($name, $value); |
||
| 30 | |||
| 31 | if ($group !== null) { |
||
| 32 | $this->setGroup($name, (int)$group); |
||
| 33 | } |
||
| 34 | |||
| 35 | if ($token->name() === 'T_SKIP') { |
||
| 36 | $this->makeSkipped($name); |
||
| 37 | } |
||
| 38 | } |
||
| 39 | |||
| 49 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.