@@ -29,7 +29,9 @@ discard block |
||
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 |
||
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 |