| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 9 |
| CRAP Score | 2 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 31 | 2 | public function dispatch(Route $route, callable $next) |
|
| 32 | { |
||
| 33 | 2 | if (!$this->isSatisfiedBy($route)) { |
|
| 34 | 1 | return $next($route); |
|
| 35 | } |
||
| 36 | |||
| 37 | 1 | $action = $route->action(); |
|
| 38 | 1 | $callback = $action['uses']; |
|
| 39 | |||
| 40 | 1 | $parameters = $this->resolver->resolve( |
|
| 41 | 1 | new ReflectionFunction($callback), |
|
| 42 | 1 | $route->parameters() |
|
| 43 | ); |
||
| 44 | |||
| 45 | 1 | return call_user_func_array($callback, $parameters); |
|
| 46 | } |
||
| 47 | |||
| 60 |