Passed
Push — master ( 0ef30d...4f9ab4 )
by Nicolaas
02:40
created
code/api/CountryURLProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function CurrentCountrySegment($url = '')
38 38
     {
39 39
         $param = Config::inst()->get('CountryURLProvider', 'locale_get_parameter');
40
-        if(isset($_GET[$param])) {
40
+        if (isset($_GET[$param])) {
41 41
             $potentialCountry = $_GET[$param];
42 42
         } else {
43 43
             $url = $this->getCurrentURL($url);
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                 $potentialCountry = isset($array[0]) ? trim($array[0]) : '';
49 49
             }
50 50
         }
51
-        if(strlen($potentialCountry) === 2) {
51
+        if (strlen($potentialCountry) === 2) {
52 52
             $potentialCountry = strtoupper($potentialCountry);
53 53
             $check = EcommerceCountry::get()->filter(['Code' => $potentialCountry])->count();
54 54
             if ($check) {
@@ -84,14 +84,14 @@  discard block
 block discarded – undo
84 84
             }
85 85
             $parsedUrl['path'] = implode('/', $pathParts);
86 86
             $newURL =
87
-                $parsedUrl['scheme'] .
88
-                '://' .
87
+                $parsedUrl['scheme'].
88
+                '://'.
89 89
                 Controller::join_links(
90 90
                     $parsedUrl['host'],
91 91
                     $parsedUrl['path']
92 92
                 );
93 93
             if (isset($parsedUrl['query'])) {
94
-                $newURL = $newURL . '?' . $parsedUrl['query'];
94
+                $newURL = $newURL.'?'.$parsedUrl['query'];
95 95
             }
96 96
         }
97 97
         if ($oldURL !== $newURL) {
Please login to merge, or discard this patch.