Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2 |
Changes | 7 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
62 | 1 | public function execute(): void |
|
63 | { |
||
64 | 1 | if (!$this->skip) { |
|
65 | 1 | ob_start(); |
|
66 | 1 | call_user_func_array($this->callback, $this->params); |
|
67 | 1 | $this->onAfterExecute(); |
|
68 | /** @var string $output */ |
||
69 | 1 | $output = ob_get_clean(); |
|
70 | 1 | $this->output = $output; |
|
71 | } |
||
72 | 1 | $this->result = JobResult::fromJob($this); |
|
73 | } |
||
75 |