| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 2 |
| 1 | <?php |
||
| 15 | public function processRoute($route, $bindings = []) |
||
| 16 | { |
||
| 17 | try { |
||
| 18 | $response = $this->getRouteResponse($route, $bindings); |
||
| 19 | } catch( Exception $e){ |
||
| 20 | $response = ''; |
||
| 21 | } |
||
| 22 | $routeAction = $route->getAction(); |
||
| 23 | $routeGroup = $this->getRouteGroup($routeAction['uses']); |
||
| 24 | $routeDescription = $this->getRouteDescription($routeAction['uses']); |
||
| 25 | |||
| 26 | return $this->getParameters([ |
||
| 27 | 'resource' => $routeGroup, |
||
| 28 | 'title' => $routeDescription['short'], |
||
| 29 | 'description' => $routeDescription['long'], |
||
| 30 | 'methods' => $route->getMethods(), |
||
| 31 | 'uri' => $route->uri(), |
||
| 32 | 'parameters' => [], |
||
| 33 | 'response' => $response, |
||
| 34 | ], $routeAction); |
||
| 35 | } |
||
| 36 | |||
| 53 |