Passed
Push — master ( d7603a...8db0f7 )
by Mehmet
02:15
created
src/Router.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 = [
Please login to merge, or discard this patch.