@@ -85,10 +85,11 @@ discard block |
||
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 |
||
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 |