@@ -100,7 +100,7 @@ |
||
| 100 | 100 | /** |
| 101 | 101 | * Retrieve all of the URL routes registered. |
| 102 | 102 | * |
| 103 | - * @return string[] |
|
| 103 | + * @return integer[] |
|
| 104 | 104 | */ |
| 105 | 105 | public function getRoutes() |
| 106 | 106 | { |
@@ -60,7 +60,8 @@ |
||
| 60 | 60 | { |
| 61 | 61 | $routes = Controller::create($routeMapper, $compiler); |
| 62 | 62 | |
| 63 | - return new Server(function (ServerRequestInterface $request) use ($routes, $compiler) { |
|
| 63 | + return new Server(function (ServerRequestInterface $request) use ($routes, $compiler) |
|
| 64 | + { |
|
| 64 | 65 | $httpMethod = $request->getMethod(); |
| 65 | 66 | $urlPath = Controller::normalizeUrl($request->getUri()->getPath()); |
| 66 | 67 | |
@@ -19,7 +19,8 @@ |
||
| 19 | 19 | return $array; |
| 20 | 20 | } |
| 21 | 21 | |
| 22 | - usort($array, function ($a, $b) use ($key, $order, $case_insensitive) { |
|
| 22 | + usort($array, function ($a, $b) use ($key, $order, $case_insensitive) |
|
| 23 | + { |
|
| 23 | 24 | $aValue = __::get($a, $key); |
| 24 | 25 | $bValue = __::get($b, $key); |
| 25 | 26 | |