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