Completed
Branch master (df5cd6)
by Marcos Sigueros
02:30
created
src/Router.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,9 @@  discard block
 block discarded – undo
29 29
         $result = null;
30 30
         foreach($routes as $regex => $callable){
31 31
             $result = $this->execute($regex, $callable);
32
-            if($result !== false) return $result;
32
+            if($result !== false) {
33
+                return $result;
34
+            }
33 35
         }
34 36
         return false;
35 37
     }
@@ -45,7 +47,9 @@  discard block
 block discarded – undo
45 47
         if(is_array($callable)){
46 48
             $callable = end($callable);
47 49
             foreach($callable as $conf){
48
-                if($conf !== $_SERVER['REQUEST_METHOD']) return false;
50
+                if($conf !== $_SERVER['REQUEST_METHOD']) {
51
+                    return false;
52
+                }
49 53
             }
50 54
         }
51 55
         
Please login to merge, or discard this patch.