| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 42 | private function orderRoutes(array $routes):void |
||
| 43 | { |
||
| 44 | $kRoutes = $routes; |
||
| 45 | foreach($routes as $r => $route){ |
||
| 46 | if(array_key_exists('name',$route)){ |
||
| 47 | unset($kRoutes[$r]); |
||
| 48 | $kRoutes["'{$route['name']}'"] = $route; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | ksort($kRoutes); |
||
| 52 | $this->setRoutes($kRoutes); |
||
| 53 | } |
||
| 55 |