| Total Complexity | 4 |
| Total Lines | 43 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | class DirectivesASTBuilder extends AbstractASTBuilder |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @inheritdoc |
||
| 14 | */ |
||
| 15 | public function supportsBuilder(string $kind): bool |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritdoc |
||
| 22 | */ |
||
| 23 | public function build(LexerInterface $lexer, array $params): ?array |
||
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param LexerInterface $lexer |
||
| 38 | * @param bool $isConst |
||
| 39 | * @return array |
||
| 40 | * @throws SyntaxErrorException |
||
| 41 | */ |
||
| 42 | protected function parseDirective(LexerInterface $lexer, bool $isConst): array |
||
| 56 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.