Passed
Push — master ( b9396f...af2f54 )
by Mihail
03:20
created
src/Network/Request/MultiLanguageFeatures.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         // try to find language in pathway
46 46
         foreach (App::$Properties->get('languages') as $lang) {
47
-            if (Str::startsWith('/' . $lang, $this->getPathInfo())) {
47
+            if (Str::startsWith('/'.$lang, $this->getPathInfo())) {
48 48
                 $this->language = $lang;
49 49
                 $this->languageInPath = true;
50 50
                 // inject templex url builder dependency
@@ -83,11 +83,11 @@  discard block
 block discarded – undo
83 83
         // parse query string
84 84
         $queryString = null;
85 85
         if (count($this->query->all()) > 0) {
86
-            $queryString = '?' . http_build_query($this->query->all());
86
+            $queryString = '?'.http_build_query($this->query->all());
87 87
         }
88 88
 
89 89
         // build response with redirect to language-based path
90
-        $redirectUrl = $this->getSchemeAndHttpHost() . $this->basePath . '/' . $userLang . $this->getPathInfo() . $queryString;
90
+        $redirectUrl = $this->getSchemeAndHttpHost().$this->basePath.'/'.$userLang.$this->getPathInfo().$queryString;
91 91
         $response = new RedirectResponse($redirectUrl);
92 92
         $response->send();
93 93
         exit();
Please login to merge, or discard this patch.