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