Completed
Branch master (71d613)
by Mehmet
07:53 queued 05:22
created
src/Router.php 1 patch
Spacing   +2 added lines, -2 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;
Please login to merge, or discard this patch.