@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | * @param string $requestedPath |
53 | 53 | * @param string $folder |
54 | 54 | */ |
55 | - public function __construct(array $routes, string $defaultReturnType, string $method, string $requestedPath, string $folder='') |
|
55 | + public function __construct(array $routes, string $defaultReturnType, string $method, string $requestedPath, string $folder = '') |
|
56 | 56 | { |
57 | 57 | $this->routes = $routes; |
58 | 58 | $this->method = $method; |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | if (!empty($folder)) { |
72 | 72 | $requestPath = '/' . trim(preg_replace('#^/' . $folder . '#msi', '/', $requestPath), "/"); |
73 | 73 | } |
74 | - if($requestPath == ''){ |
|
74 | + if ($requestPath == '') { |
|
75 | 75 | $requestPath = '/'; |
76 | 76 | } |
77 | 77 | return $requestPath; |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | ]; |
160 | 160 | if ($routeInfo[0] === FastRoute\Dispatcher::FOUND) { |
161 | 161 | $handler = $routeInfo[1]; |
162 | - $vars = $routeInfo[2]; |
|
162 | + $vars = $routeInfo[2]; |
|
163 | 163 | $routeData = $handler($vars); |
164 | 164 | } |
165 | 165 | $dispatchResults = [ |