Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function isFailing(string $checkerClass): bool |
||
37 | { |
||
38 | if ($this->useStateStorage) { |
||
39 | $storage = CheckerState::make($checkerClass); |
||
40 | |||
41 | if ($storage->exists()) { |
||
42 | return $storage->isFailing(); |
||
43 | } |
||
44 | } |
||
45 | |||
46 | $this->useStateStorage = true; |
||
47 | |||
48 | return Executor::make($checkerClass)->fails(); |
||
49 | } |
||
50 | |||
62 |