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