Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
63 | 20 | public function dispatch(ServerRequest $request, array $parameters = []) |
|
64 | { |
||
65 | 20 | $matchedRoute = $this->matcher->matchRequest($request); |
|
66 | 20 | if ($matchedRoute !== false) { |
|
67 | 16 | return $this->dispatcher->dispatchRoute($matchedRoute, $parameters); |
|
68 | } |
||
69 | |||
70 | 4 | return $this->dispatcher->dispatchNotFound(); |
|
71 | } |
||
72 | } |
||
73 |