@@ -46,8 +46,9 @@ discard block |
||
| 46 | 46 | "query" => array() |
| 47 | 47 | ); |
| 48 | 48 | |
| 49 | - if (count($folders) > 1 && empty($folders[0])) |
|
| 50 | - array_shift($folders); |
|
| 49 | + if (count($folders) > 1 && empty($folders[0])) { |
|
| 50 | + array_shift($folders); |
|
| 51 | + } |
|
| 51 | 52 | |
| 52 | 53 | if (count($folders) == 1 && empty($folders[0])) { |
| 53 | 54 | $this->def_route = $value; |
@@ -67,7 +68,9 @@ discard block |
||
| 67 | 68 | |
| 68 | 69 | $regex = $this->readpath($folders); |
| 69 | 70 | |
| 70 | - if (isset($this->routes[$regex])) unset($this->routes[$regex]); |
|
| 71 | + if (isset($this->routes[$regex])) { |
|
| 72 | + unset($this->routes[$regex]); |
|
| 73 | + } |
|
| 71 | 74 | |
| 72 | 75 | } |
| 73 | 76 | |