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