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