@@ -48,12 +48,12 @@ discard block  | 
                                                    ||
| 48 | 48 | public function CanonicalObject()  | 
                                                        
| 49 | 49 |      { | 
                                                        
| 50 | 50 | $countryObject = CountryPrice_EcommerceCountry::get_real_country();  | 
                                                        
| 51 | -        if($countryObject && $countryObject->Code) { | 
                                                        |
| 51 | +        if ($countryObject && $countryObject->Code) { | 
                                                        |
| 52 | 52 | $object = $this->owner->CountryPriceTranslations()  | 
                                                        
| 53 | 53 |                  ->innerJoin('EcommerceCountry', '"EcommerceCountry"."ID" = "CountryPrice_Translation"."EcommerceCountryID"') | 
                                                        
| 54 | 54 |                  ->filter(array('EcommerceCountry.Code' => $countryObject->Code)) | 
                                                        
| 55 | 55 | ->first();  | 
                                                        
| 56 | -            if($object && $object->exists()) { | 
                                                        |
| 56 | +            if ($object && $object->exists()) { | 
                                                        |
| 57 | 57 | return $object;  | 
                                                        
| 58 | 58 | }  | 
                                                        
| 59 | 59 | }  | 
                                                        
@@ -63,7 +63,7 @@ discard block  | 
                                                    ||
| 63 | 63 | public function loadTranslatedValues($countryID = 0, $variableOrMethod = '')  | 
                                                        
| 64 | 64 |      { | 
                                                        
| 65 | 65 | $translation = null;  | 
                                                        
| 66 | -        if (! $countryID) { | 
                                                        |
| 66 | +        if (!$countryID) { | 
                                                        |
| 67 | 67 | $countryObject = CountryPrice_EcommerceCountry::get_real_country();  | 
                                                        
| 68 | 68 |              if ($countryObject) { | 
                                                        
| 69 | 69 | $countryID = $countryObject->ID;  | 
                                                        
@@ -82,9 +82,9 @@ discard block  | 
                                                    ||
| 82 | 82 | $fieldsToReplace = $translation->FieldsToReplace();  | 
                                                        
| 83 | 83 |              foreach ($fieldsToReplace as $replaceFields) { | 
                                                        
| 84 | 84 | $pageField = $replaceFields->PageField;  | 
                                                        
| 85 | - $pageFieldTranslated = $pageField . 'Translated';  | 
                                                        |
| 85 | + $pageFieldTranslated = $pageField.'Translated';  | 
                                                        |
| 86 | 86 | $translationField = $replaceFields->TranslationField;  | 
                                                        
| 87 | -                if (! $variableOrMethod || $variableOrMethod === $pageField) { | 
                                                        |
| 87 | +                if (!$variableOrMethod || $variableOrMethod === $pageField) { | 
                                                        |
| 88 | 88 |                      if ($translation->hasMethod($translationField)) { | 
                                                        
| 89 | 89 | $this->owner->$pageField = $translation->$translationField();  | 
                                                        
| 90 | 90 | $this->owner->$pageFieldTranslated = $translation->$translationField();  | 
                                                        
@@ -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 { | 
                                                        
@@ -154,7 +154,7 @@ discard block  | 
                                                    ||
| 154 | 154 | public function AlternativeHrefLangLinksCachingKey()  | 
                                                        
| 155 | 155 |      { | 
                                                        
| 156 | 156 | $countryObject = CountryPrice_EcommerceCountry::get_real_country();  | 
                                                        
| 157 | -        if($countryObject && $countryObject->Code) { | 
                                                        |
| 157 | +        if ($countryObject && $countryObject->Code) { | 
                                                        |
| 158 | 158 | return 'AlternativeHrefLangLinksCachingKey-'.$countryObject->Code.'-'.$this->owner->dataRecord->ID.'-'.strtotime($this->owner->dataRecord->LastEdited);  | 
                                                        
| 159 | 159 | }  | 
                                                        
| 160 | 160 | return 'AlternativeHrefLangLinksCachingKey'.$this->owner->dataRecord->ID.'-'.$this->owner->dataRecord->ID.'-'.strtotime($this->owner->dataRecord->LastEdited);  | 
                                                        
@@ -167,7 +167,7 @@ discard block  | 
                                                    ||
| 167 | 167 | public function UpdateCanonicalLink(&$link)  | 
                                                        
| 168 | 168 |      { | 
                                                        
| 169 | 169 | $obj = $this->owner->dataRecord->CanonicalObject();  | 
                                                        
| 170 | -        if($obj) { | 
                                                        |
| 170 | +        if ($obj) { | 
                                                        |
| 171 | 171 | $link = $obj->Link();  | 
                                                        
| 172 | 172 |          } else { | 
                                                        
| 173 | 173 | $link = $this->owner->dataRecord->AbsoluteLink();  |