| Conditions | 3 |
| Paths | 2 |
| Total Lines | 22 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 65 | public function execute() |
||
| 66 | { |
||
| 67 | ob_start(); |
||
| 68 | $result = new Result(); |
||
| 69 | |||
| 70 | try { |
||
| 71 | $result->setReturn( |
||
| 72 | call_user_func_array( |
||
| 73 | $this->getCallable(), |
||
| 74 | (is_array($args = $this->getArgs())) ? $args : [$args] |
||
| 75 | ) |
||
| 76 | ); |
||
| 77 | } catch (\RuntimeException $e) { |
||
| 78 | ob_get_clean(); |
||
| 79 | throw $e; |
||
| 80 | } |
||
| 81 | |||
| 82 | $result->setOutput(ob_get_clean()); |
||
| 83 | $result->setTask($this); |
||
| 84 | |||
| 85 | return $result; |
||
| 86 | } |
||
| 87 | } |
||
| 88 |