| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | 5 | public function runTarget($method, &$params) |
|
| 42 | { |
||
| 43 | 5 | if (!$this->instance instanceof Routable) { |
|
| 44 | 1 | throw new InvalidArgumentException('Route target must be an instance of Respect\Rest\Routable'); |
|
| 45 | } |
||
| 46 | |||
| 47 | 4 | return call_user_func_array( |
|
| 48 | 4 | array($this->instance, $method), |
|
| 49 | 4 | $params |
|
| 50 | ); |
||
| 51 | } |
||
| 52 | } |
||
| 53 |