@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | $this->handleExtensionRequest(); |
103 | 103 | } else { |
104 | 104 | $uriPath = urldecode( |
105 | - parse_url($_SERVER[ 'REQUEST_URI' ], PHP_URL_PATH) |
|
105 | + parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) |
|
106 | 106 | ); |
107 | 107 | |
108 | 108 | $uriPathParts = explode('public/', $uriPath); |
@@ -273,8 +273,8 @@ discard block |
||
273 | 273 | ); |
274 | 274 | } elseif (preg_match("/([a-zA-Z0-9\\\]+)(@)([a-zA-Z0-9\\\]+)/", $closure, $matches)) { |
275 | 275 | $this->setController( |
276 | - (new Router\DataStructures\Controller($matches[ 1 ])) |
|
277 | - ->setRequestMethod($matches[ 3 ]), |
|
276 | + (new Router\DataStructures\Controller($matches[1])) |
|
277 | + ->setRequestMethod($matches[3]), |
|
278 | 278 | $uriSegments |
279 | 279 | ); |
280 | 280 | } elseif (is_string($closure) && $closure !== '') { |
@@ -363,10 +363,10 @@ discard block |
||
363 | 363 | $parameters = $controllerMethodParams; |
364 | 364 | } else { |
365 | 365 | foreach ($method->getParameters() as $index => $parameter) { |
366 | - if (isset($uriSegments[ $parameter->name ])) { |
|
367 | - $parameters[ $index ] = $controllerMethodParams[ $parameter->name ]; |
|
366 | + if (isset($uriSegments[$parameter->name])) { |
|
367 | + $parameters[$index] = $controllerMethodParams[$parameter->name]; |
|
368 | 368 | } else { |
369 | - $parameters[ $index ] = null; |
|
369 | + $parameters[$index] = null; |
|
370 | 370 | } |
371 | 371 | } |
372 | 372 | } |