Conditions | 2 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
24 | 198 | public function __invoke(): bool |
|
25 | { |
||
26 | $failed = ! $this->getArtisanCommnad()->task($this->title(), function () { |
||
27 | try { |
||
28 | 198 | return $this->run(); |
|
29 | 12 | } catch (Exception $e) { |
|
30 | 12 | $this->errorMessage = get_class($e).': '.$e->getMessage(); |
|
31 | |||
32 | 12 | return false; |
|
33 | } |
||
34 | 198 | }, static::LOADING_TEXT.'...'); |
|
35 | |||
36 | 198 | $this->failed = $failed; |
|
37 | |||
38 | 198 | return ! $failed; |
|
39 | } |
||
40 | |||
60 |