@@ -68,10 +68,11 @@ discard block |
||
68 | 68 | |
69 | 69 | $regex = $this->readpath($folders); |
70 | 70 | |
71 | - if (isset($this->routes[$regex])) |
|
72 | - return $this->routes[$regex]; |
|
73 | - else |
|
74 | - return null; |
|
71 | + if (isset($this->routes[$regex])) { |
|
72 | + return $this->routes[$regex]; |
|
73 | + } else { |
|
74 | + return null; |
|
75 | + } |
|
75 | 76 | |
76 | 77 | } |
77 | 78 | |
@@ -81,7 +82,9 @@ discard block |
||
81 | 82 | |
82 | 83 | $regex = $this->readpath($folders); |
83 | 84 | |
84 | - if (isset($this->routes[$regex])) unset($this->routes[$regex]); |
|
85 | + if (isset($this->routes[$regex])) { |
|
86 | + unset($this->routes[$regex]); |
|
87 | + } |
|
85 | 88 | |
86 | 89 | } |
87 | 90 | |
@@ -99,7 +102,9 @@ discard block |
||
99 | 102 | |
100 | 103 | private function readpath($folders = array(), &$value = null, $regex = '') { |
101 | 104 | |
102 | - if (!empty($folders) && empty($folders[0])) array_shift($folders); |
|
105 | + if (!empty($folders) && empty($folders[0])) { |
|
106 | + array_shift($folders); |
|
107 | + } |
|
103 | 108 | |
104 | 109 | if (empty($folders)) { |
105 | 110 |