| Conditions | 5 |
| Paths | 8 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 5 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | 12 | public function run(): bool |
|
| 31 | { |
||
| 32 | 12 | if ($this->getArtisanCommnad()->getOutput()->isVerbose()) { |
|
| 33 | 6 | $this->getArtisanCommnad()->getOutput()->newLine(); |
|
| 34 | } |
||
| 35 | |||
| 36 | 12 | $result = call_user_func($this->function, ...$this->arguments); |
|
| 37 | |||
| 38 | 12 | if (! is_bool($result) && $this->getArtisanCommnad()->getOutput()->isVerbose()) { |
|
| 39 | 6 | $this->getArtisanCommnad()->line('<options=bold>Returned result:</>'); |
|
| 40 | 6 | $returnResult = var_export($result, true); |
|
| 41 | 6 | $this->getArtisanCommnad()->line($returnResult); |
|
| 42 | } |
||
| 43 | |||
| 44 | 12 | return is_bool($result) ? $result : true; |
|
| 45 | } |
||
| 46 | } |
||
| 47 |