Completed
Push — 4.0 ( 1533b9...4d1c3b )
by Marco
13:08
created
src/Router/RoutingTable.php 1 patch
Braces   +11 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,10 +68,11 @@  discard block
 block discarded – undo
68 68
         
69 69
         $regex = $this->readpath($folders);
70 70
         
71
-        if (isset($this->routes[$regex])) 
72
-            return $this->routes[$regex];
73
-        else 
74
-            return null;
71
+        if (isset($this->routes[$regex])) {
72
+                    return $this->routes[$regex];
73
+        } else {
74
+                    return null;
75
+        }
75 76
         
76 77
     }
77 78
     
@@ -81,7 +82,9 @@  discard block
 block discarded – undo
81 82
         
82 83
         $regex = $this->readpath($folders);
83 84
         
84
-        if (isset($this->routes[$regex])) unset($this->routes[$regex]);
85
+        if (isset($this->routes[$regex])) {
86
+            unset($this->routes[$regex]);
87
+        }
85 88
         
86 89
     }
87 90
     
@@ -99,7 +102,9 @@  discard block
 block discarded – undo
99 102
     
100 103
     private function readpath($folders = array(), &$value = null, $regex = '') {
101 104
         
102
-        if (!empty($folders) && empty($folders[0])) array_shift($folders);
105
+        if (!empty($folders) && empty($folders[0])) {
106
+            array_shift($folders);
107
+        }
103 108
         
104 109
         if (empty($folders)) {
105 110
             
Please login to merge, or discard this patch.