| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 42 | protected function parseDirective(LexerInterface $lexer, bool $isConst): array |
||
|
|
|||
| 43 | { |
||
| 44 | $start = $lexer->getToken(); |
||
| 45 | |||
| 46 | $this->expect($lexer, TokenKindEnum::AT); |
||
| 47 | |||
| 48 | return [ |
||
| 49 | 'kind' => NodeKindEnum::DIRECTIVE, |
||
| 50 | 'name' => $this->buildAST(ASTKindEnum::NAME, $lexer), |
||
| 51 | 'arguments' => $this->buildAST(ASTKindEnum::ARGUMENTS, $lexer), |
||
| 52 | 'loc' => $this->buildLocation($lexer, $start), |
||
| 53 | ]; |
||
| 56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.