@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * Request URL. |
77 | 77 | */ |
78 | - $this->url = '/' . $url; |
|
78 | + $this->url = '/'.$url; |
|
79 | 79 | |
80 | 80 | /** |
81 | 81 | * Get method. |
@@ -163,20 +163,20 @@ discard block |
||
163 | 163 | $controller = ''; |
164 | 164 | if (false !== strpos($this->url, '.php')) { |
165 | 165 | $controller = explode('.php', $this->url); |
166 | - $controller = ltrim($controller[0], '/') . '.php'; |
|
166 | + $controller = ltrim($controller[0], '/').'.php'; |
|
167 | 167 | } |
168 | 168 | $route = trim($route, '/'); |
169 | 169 | if ('Original' == $this->package) { |
170 | 170 | if ($this->languageCode != $this->languageDefault) { |
171 | - $url = trim('/' . $this->languageCode . '/' . $route, '/'); |
|
171 | + $url = trim('/'.$this->languageCode.'/'.$route, '/'); |
|
172 | 172 | } else { |
173 | - $url = trim('/' . $route, '/'); |
|
173 | + $url = trim('/'.$route, '/'); |
|
174 | 174 | } |
175 | 175 | } else { |
176 | 176 | if ($this->languageCode != $this->languageDefault) { |
177 | - $url = trim('/' . $this->languageCode . '/' . lcfirst($this->package) . '/' . $route, '/'); |
|
177 | + $url = trim('/'.$this->languageCode.'/'.lcfirst($this->package).'/'.$route, '/'); |
|
178 | 178 | } else { |
179 | - $url = trim('/' . lcfirst($this->package) . '/' . $route, '/'); |
|
179 | + $url = trim('/'.lcfirst($this->package).'/'.$route, '/'); |
|
180 | 180 | } |
181 | 181 | } |
182 | 182 | if ($domain) { |
@@ -194,15 +194,15 @@ discard block |
||
194 | 194 | $protocol = 'https://'; |
195 | 195 | } |
196 | 196 | if (empty($controller)) { |
197 | - $url = $protocol . $host . '/' . $url; |
|
197 | + $url = $protocol.$host.'/'.$url; |
|
198 | 198 | } else { |
199 | - $url = $protocol . $host . '/' . $controller . '/' . $url; |
|
199 | + $url = $protocol.$host.'/'.$controller.'/'.$url; |
|
200 | 200 | } |
201 | 201 | } else { |
202 | 202 | if (empty($controller)) { |
203 | - $url = '/' . $url; |
|
203 | + $url = '/'.$url; |
|
204 | 204 | } else { |
205 | - $url = '/' . $controller . '/' . $url; |
|
205 | + $url = '/'.$controller.'/'.$url; |
|
206 | 206 | } |
207 | 207 | } |
208 | 208 |