@@ -70,10 +70,11 @@ discard block |
||
70 | 70 | |
71 | 71 | $regex = $this->readpath($folders); |
72 | 72 | |
73 | - if (isset($this->routes[$regex])) |
|
74 | - return $this->routes[$regex]; |
|
75 | - else |
|
76 | - return null; |
|
73 | + if (isset($this->routes[$regex])) { |
|
74 | + return $this->routes[$regex]; |
|
75 | + } else { |
|
76 | + return null; |
|
77 | + } |
|
77 | 78 | |
78 | 79 | } |
79 | 80 | |
@@ -83,7 +84,9 @@ discard block |
||
83 | 84 | |
84 | 85 | $regex = $this->readpath($folders); |
85 | 86 | |
86 | - if (isset($this->routes[$regex])) unset($this->routes[$regex]); |
|
87 | + if (isset($this->routes[$regex])) { |
|
88 | + unset($this->routes[$regex]); |
|
89 | + } |
|
87 | 90 | |
88 | 91 | } |
89 | 92 | |
@@ -164,7 +167,9 @@ discard block |
||
164 | 167 | |
165 | 168 | } else { |
166 | 169 | // if the element is not a json string, I assume it's the service name |
167 | - if (!isset($value['service'])) $value['service'] = array(); |
|
170 | + if (!isset($value['service'])) { |
|
171 | + $value['service'] = array(); |
|
172 | + } |
|
168 | 173 | array_push($value['service'], $folder); |
169 | 174 | |
170 | 175 | return $this->readpath( |