Completed
Push — master ( 004164...deef23 )
by Nicolaas
02:29
created
code/control/CountryPrice_Page_Controller_Extension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.