Conditions | 5 |
Paths | 5 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | protected function getRouteInformation(Route $route, $filter, $namespace): ?array |
||
22 | { |
||
23 | $uri = $route->uri(); |
||
24 | $host = $route->domain(); |
||
25 | $name = $route->getName(); |
||
26 | $laroute = $route->getAction('laroute'); |
||
27 | |||
28 | switch ($filter) { |
||
29 | case 'all': |
||
30 | if ($laroute === false) { |
||
31 | return null; |
||
32 | } |
||
33 | break; |
||
34 | case 'only': |
||
35 | if ($laroute !== true) { |
||
36 | return null; |
||
37 | } |
||
38 | break; |
||
39 | } |
||
40 | |||
41 | return compact('host', 'uri', 'name'); |
||
42 | } |
||
43 | } |
||
44 |