Completed
Push — 4.0 ( 63fdb6...88351d )
by Marco
05:36
created
src/Comodojo/Dispatcher/Router/Table.php 1 patch
Braces   +8 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,10 +85,11 @@  discard block
 block discarded – undo
85 85
 
86 86
         $regex = $this->regex($route);
87 87
 
88
-        if (isset($this->routes[$regex]))
89
-            return $this->routes[$regex];
90
-        else
91
-            return null;
88
+        if (isset($this->routes[$regex])) {
89
+                    return $this->routes[$regex];
90
+        } else {
91
+                    return null;
92
+        }
92 93
 
93 94
     }
94 95
 
@@ -160,7 +161,9 @@  discard block
 block discarded – undo
160 161
         
161 162
         $routes = $this->cache->get("dispatcher_routes");
162 163
         
163
-        if (is_null($routes)) return null;
164
+        if (is_null($routes)) {
165
+            return null;
166
+        }
164 167
         
165 168
         foreach ($routes as $name => $data) {
166 169
             
Please login to merge, or discard this patch.