@@ -414,7 +414,7 @@ discard block |
||
414 | 414 | |
415 | 415 | // check if route is defined without regex |
416 | 416 | if (in_array($uri, $routes)) { |
417 | - $currentRoute = array_filter($this->routes, function ($r) use ($method, $uri) { |
|
417 | + $currentRoute = array_filter($this->routes, function($r) use ($method, $uri) { |
|
418 | 418 | return RouterRequest::validMethod($r['method'], $method) && $r['route'] === $uri; |
419 | 419 | }); |
420 | 420 | if (!empty($currentRoute)) { |
@@ -438,7 +438,7 @@ discard block |
||
438 | 438 | $this->runRouteMiddleware($data, 'before'); |
439 | 439 | |
440 | 440 | array_shift($matched); |
441 | - $matched = array_map(function ($value) { |
|
441 | + $matched = array_map(function($value) { |
|
442 | 442 | return trim(urldecode($value)); |
443 | 443 | }, $matched); |
444 | 444 | |
@@ -457,7 +457,7 @@ discard block |
||
457 | 457 | |
458 | 458 | if ($foundRoute === false) { |
459 | 459 | if (!$this->errorCallback) { |
460 | - $this->errorCallback = function () { |
|
460 | + $this->errorCallback = function() { |
|
461 | 461 | header($_SERVER['SERVER_PROTOCOL'] . ' 404 Not Found'); |
462 | 462 | return $this->exception('Route not found. Looks like something went wrong. Please try again.'); |
463 | 463 | }; |