@@ -19,7 +19,7 @@ |
||
19 | 19 | '/^(api\/v1\/test)\/(redis)$/', // 1st group match controller 2nd match action |
20 | 20 | '/^(api\/v1\/restful)$/', // 1st group match controller with default action |
21 | 21 | '/^(api\/v1\/restful)\/(\d+)$/', // 1st group match controller then slug_id |
22 | - /* '/^(api\/v1\/restful)(\?.*)/', // 3rd group match ?a=1&b=2 |
|
22 | + /* '/^(api\/v1\/restful)(\?.*)/', // 3rd group match ?a=1&b=2 |
|
23 | 23 | '/^(api\/v1\/restful)\/(.*?)(\?.*)/', // 3rd group match ?a=1&b=2 |
24 | 24 | '/^(api\/v1\/restful)\/(.*?)(\/.*)/', // 3rd group match /a/1/b/2 |
25 | 25 | '/^(api\/v1\/restful)\/(.*)$/', // 1st group match controller 2nd match action*/ |
@@ -18,7 +18,7 @@ |
||
18 | 18 | { |
19 | 19 | $this->method = 'GET'; |
20 | 20 | $this->expr = '/^(*.)$/'; |
21 | - $this->callable = function () { |
|
21 | + $this->callable = function() { |
|
22 | 22 | }; |
23 | 23 | if (strpos($routeItem, ';') !== false) { |
24 | 24 | list( |
@@ -54,7 +54,7 @@ |
||
54 | 54 | public function getExpr(): array |
55 | 55 | { |
56 | 56 | $patterns = array_map( |
57 | - function (Route $i) { |
|
57 | + function(Route $i) { |
|
58 | 58 | return $i->getExpr(); |
59 | 59 | }, |
60 | 60 | $this->routes |