| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 26 | public function boot(Environment $env): void |
||
| 27 | { |
||
| 28 | /** @var SimpleLexerInterface $lexer */ |
||
| 29 | $lexer = $env->get(LexerInterface::class); |
||
| 30 | |||
| 31 | $lexer->add($this->getTokenName(), $this->getTokenPattern()); |
||
| 32 | |||
| 33 | if (! $this->isKept()) { |
||
| 34 | $lexer->skip($this->getTokenName()); |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 62 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.