| Conditions | 2 | 
| Paths | 2 | 
| Total Lines | 15 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 2 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php  | 
            ||
| 14 | 6 | public function dispatch(callable $controller, array $vars, Route $route = null)  | 
            |
| 15 |     { | 
            ||
| 16 | 6 |         if (method_exists($this->getContainer(), 'call')) { | 
            |
| 17 | 3 | $response = $this->getContainer()->call($controller, $vars);  | 
            |
| 18 | |||
| 19 | 3 | return $this->determineResponse($response);  | 
            |
| 20 | }  | 
            ||
| 21 | |||
| 22 | 3 | throw new RuntimeException(  | 
            |
| 23 | 3 | sprintf(  | 
            |
| 24 | 3 | 'To use the parameter strategy, the container must implement the (::call) method. (%s) does not.',  | 
            |
| 25 | 3 | get_class($this->getContainer())  | 
            |
| 26 | 3 | )  | 
            |
| 27 | 3 | );  | 
            |
| 28 | }  | 
            ||
| 29 | }  | 
            ||
| 30 |