Passed
Pull Request — master (#1542)
by
unknown
03:45
created
model/Request.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
 
194 194
     public function getRequestUri()
195 195
     {
196
-        return $this->getServerConstant('HTTP_HOST') . $this->getServerConstant('REQUEST_URI');
196
+        return $this->getServerConstant('HTTP_HOST').$this->getServerConstant('REQUEST_URI');
197 197
     }
198 198
 
199 199
     /**
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      * @param string $newlang new UI language to set
202 202
      * @return string the relative url of the page
203 203
      */
204
-    public function getLangUrl($newlang=null)
204
+    public function getLangUrl($newlang = null)
205 205
     {
206 206
         $script_name = str_replace('/index.php', '', $this->getServerConstant('SCRIPT_NAME'));
207 207
         $langurl = substr(str_replace($script_name, '', strval($this->getServerConstant('REQUEST_URI'))), 1);
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
         }
211 211
         if (str_contains($langurl, '?')) {
212 212
             $urlparts = explode('?', $langurl);
213
-            $langurl = $urlparts[0] . '?' . urlencode($urlparts[1]);
213
+            $langurl = $urlparts[0].'?'.urlencode($urlparts[1]);
214 214
             $langurl = str_replace("%3D", "=", $langurl);
215 215
         }
216 216
         // make sure that the resulting URL isn't interpreted as an absolute URL
Please login to merge, or discard this patch.