| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 5 | 
| CRAP Score | 2.0185 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 15 | 1 | public function run()  | 
            |
| 16 |     { | 
            ||
| 17 | 1 | $instance = $this->findOrFail($this->space, $this->id);  | 
            |
| 18 | |||
| 19 | 1 |         if (!method_exists($instance, $this->method)) { | 
            |
| 20 |             throw new Exception("Method $this->method not defined"); | 
            ||
| 21 | }  | 
            ||
| 22 | |||
| 23 | 1 | $method = $this->method;  | 
            |
| 24 | |||
| 25 | return [  | 
            ||
| 26 | 1 | 'result' => $instance->$method(),  | 
            |
| 27 | ];  | 
            ||
| 28 | }  | 
            ||
| 29 | }  | 
            ||
| 30 |