@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | // setup |
24 | 24 | $router = new \Mezon\Router\Router(); |
25 | - $router->addRoute('/catalog/[i:foo]/', function () { |
|
25 | + $router->addRoute('/catalog/[i:foo]/', function() { |
|
26 | 26 | // do nothing |
27 | 27 | }); |
28 | 28 | |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | // setup |
43 | 43 | $_SERVER['REQUEST_METHOD'] = 'HEAD'; |
44 | 44 | $router = new \Mezon\Router\Router(); |
45 | - $router->addRoute('/catalog/[i:foo]/', function () { |
|
45 | + $router->addRoute('/catalog/[i:foo]/', function() { |
|
46 | 46 | // do nothing |
47 | 47 | }); |
48 | 48 | |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | $router = new \Mezon\Router\Router(); |
63 | 63 | $router->addRoute('/catalog/[il:cat_id]/', [ |
64 | 64 | $this, |
65 | - function () {return 1;} |
|
65 | + function() {return 1; } |
|
66 | 66 | ]); |
67 | 67 | |
68 | 68 | // assertion |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $router = new \Mezon\Router\Router(); |
85 | 85 | $router->addRoute('/catalog/[i:cat_id]', [ |
86 | 86 | $this, |
87 | - function () {return 1;} |
|
87 | + function() {return 1; } |
|
88 | 88 | ]); |
89 | 89 | |
90 | 90 | try { |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $router = new \Mezon\Router\Router(); |
110 | 110 | $router->addRoute('/catalog/[i:cat_id]', [ |
111 | 111 | $this, |
112 | - function () {return 1;} |
|
112 | + function() {return 1; } |
|
113 | 113 | ]); |
114 | 114 | |
115 | 115 | try { |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | $router = new \Mezon\Router\Router(); |
135 | 135 | $router->addRoute('/catalog/[i:item_id]', [ |
136 | 136 | $this, |
137 | - function () {return 1;} |
|
137 | + function() {return 1; } |
|
138 | 138 | ]); |
139 | 139 | |
140 | 140 | try { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | { |
177 | 177 | // setup |
178 | 178 | $router = new \Mezon\Router\Router(); |
179 | - $router->addRoute($route, function () { |
|
179 | + $router->addRoute($route, function() { |
|
180 | 180 | // do nothing |
181 | 181 | }); |
182 | 182 | |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | $router = new \Mezon\Router\Router(); |
196 | 196 | $router->addRoute('/catalog/[unexisting-type:i]/item/', [ |
197 | 197 | $this, |
198 | - function () {return 1;} |
|
198 | + function() {return 1; } |
|
199 | 199 | ]); |
200 | 200 | |
201 | 201 | try { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | $router = new \Mezon\Router\Router(); |
215 | 215 | $router->addRoute('/catalog/[i:cat_id]/item/[unexisting-type-trace:item_id]/', [ |
216 | 216 | $this, |
217 | - function () {return 1;} |
|
217 | + function() {return 1; } |
|
218 | 218 | ]); |
219 | 219 | |
220 | 220 | try { |