Completed
Push — 4.0 ( 0c3d7c...75a76e )
by Marco
12:24
created
src/Comodojo/Dispatcher/Router/RoutingTable.php 1 patch
Braces   +11 added lines, -6 removed lines patch added patch discarded remove patch
@@ -70,10 +70,11 @@  discard block
 block discarded – undo
70 70
 
71 71
         $regex = $this->readpath($folders);
72 72
 
73
-        if (isset($this->routes[$regex]))
74
-            return $this->routes[$regex];
75
-        else
76
-            return null;
73
+        if (isset($this->routes[$regex])) {
74
+                    return $this->routes[$regex];
75
+        } else {
76
+                    return null;
77
+        }
77 78
 
78 79
     }
79 80
 
@@ -83,7 +84,9 @@  discard block
 block discarded – undo
83 84
 
84 85
         $regex = $this->readpath($folders);
85 86
 
86
-        if (isset($this->routes[$regex])) unset($this->routes[$regex]);
87
+        if (isset($this->routes[$regex])) {
88
+            unset($this->routes[$regex]);
89
+        }
87 90
 
88 91
     }
89 92
 
@@ -164,7 +167,9 @@  discard block
 block discarded – undo
164 167
 
165 168
             } else {
166 169
                 // if the element is not a json string, I assume it's the service name
167
-                if (!isset($value['service'])) $value['service'] = array();
170
+                if (!isset($value['service'])) {
171
+                    $value['service'] = array();
172
+                }
168 173
                 array_push($value['service'], $folder);
169 174
 
170 175
                 return $this->readpath(
Please login to merge, or discard this patch.