@@ -37,7 +37,7 @@ discard block |
||
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 |
||
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 |
||
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) { |