@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | { |
| 85 | 85 | $method = 'POST'; |
| 86 | 86 | $route = '/[:controller]/[:action]'; |
| 87 | - $target = function () { |
|
| 87 | + $target = function() { |
|
| 88 | 88 | }; |
| 89 | 89 | |
| 90 | 90 | $this->assertInternalType('array', $this->router->getRoutes()); |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | { |
| 100 | 100 | $method = 'POST'; |
| 101 | 101 | $route = '/[:controller]/[:action]'; |
| 102 | - $target = function () { |
|
| 102 | + $target = function() { |
|
| 103 | 103 | }; |
| 104 | 104 | |
| 105 | 105 | $this->router->setRoutes(array( |
@@ -161,7 +161,7 @@ discard block |
||
| 161 | 161 | { |
| 162 | 162 | $method = 'POST'; |
| 163 | 163 | $route = '/[:controller]/[:action]'; |
| 164 | - $target = function () { |
|
| 164 | + $target = function() { |
|
| 165 | 165 | }; |
| 166 | 166 | |
| 167 | 167 | $this->router->map($method, $route, $target); |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | { |
| 179 | 179 | $method = 'POST'; |
| 180 | 180 | $route = '/[:controller]/[:action]'; |
| 181 | - $target = function () { |
|
| 181 | + $target = function() { |
|
| 182 | 182 | }; |
| 183 | 183 | $name = 'myroute'; |
| 184 | 184 | |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | 'action' => 'someaction' |
| 210 | 210 | ); |
| 211 | 211 | |
| 212 | - $this->router->map('GET', '/[:controller]/[:action]', function () { |
|
| 212 | + $this->router->map('GET', '/[:controller]/[:action]', function() { |
|
| 213 | 213 | }, 'foo_route'); |
| 214 | 214 | |
| 215 | 215 | $this->assertEquals( |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | |
| 236 | 236 | public function testGenerateWithOptionalUrlParts() |
| 237 | 237 | { |
| 238 | - $this->router->map('GET', '/[:controller]/[:action].[:type]?', function () { |
|
| 238 | + $this->router->map('GET', '/[:controller]/[:action].[:type]?', function() { |
|
| 239 | 239 | }, 'bar_route'); |
| 240 | 240 | |
| 241 | 241 | $params = array( |