Completed
Branch master (8cf0aa)
by Mehmet
03:53
created
Category
src/Router.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,19 +22,19 @@  discard block
 block discarded – undo
22 22
      * Route item can be defined using array key as an alias key.
23 23
      * @var array
24 24
      */
25
-    private $routes     = [];
25
+    private $routes = [];
26 26
 
27 27
     /**
28 28
      * HTTP request Method
29 29
      * @var string
30 30
      */
31
-    private $method     = null;
31
+    private $method = null;
32 32
 
33 33
     /**
34 34
      * Request Uri
35 35
      * @var string
36 36
      */
37
-    private $requestedPath       = null;
37
+    private $requestedPath = null;
38 38
 
39 39
     /**
40 40
      * Default return type if not noted in the $routes
@@ -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.