@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | $oldURL = $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; |
99 | 99 | |
100 | 100 | $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($oldURL); |
101 | - if($hasCountrySegment){ |
|
101 | + if ($hasCountrySegment) { |
|
102 | 102 | $newURL = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($countryCode, $oldURL); |
103 | 103 | } |
104 | 104 | else { |
@@ -163,7 +163,7 @@ discard block |
||
163 | 163 | public function UpdateCanonicalLink(&$link) |
164 | 164 | { |
165 | 165 | $obj = $this->owner->dataRecord->CanonicalObject(); |
166 | - if($obj) { |
|
166 | + if ($obj) { |
|
167 | 167 | $link = $obj->Link(); |
168 | 168 | } else { |
169 | 169 | $link = $this->owner->dataRecord->AbsoluteLink(); |