Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php declare(strict_types=1); |
||
24 | public function apply(Entry $entry, EventProcessNodeInterface $event): bool |
||
25 | { |
||
26 | if ($this->config->getMode() !== Config::MODE_AUTODISCOVER) { |
||
27 | return false; |
||
28 | } |
||
29 | |||
30 | if (!$this->check($entry)->matched()) { |
||
31 | return true; |
||
32 | } |
||
33 | |||
34 | $event->foundError(); |
||
35 | return true; |
||
36 | } |
||
43 |