Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
57 | private function orderRoutes(array $routes):void |
||
58 | { |
||
59 | $kRoutes = $routes; |
||
60 | foreach($routes as $r => $route){ |
||
61 | if(array_key_exists('name', $route)) { |
||
62 | unset($kRoutes[$r]); |
||
63 | $kRoutes["'{$route['name']}'"] = $route; |
||
64 | } |
||
65 | } |
||
66 | ksort($kRoutes); |
||
67 | $this->setRoutes($kRoutes); |
||
68 | } |
||
70 |