Completed
Push — master ( fec354...33e41e )
by Nicolaas
02:55
created
code/model/translations/CountryPrice_SiteTreeExtions.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function loadTranslatedValues($countryID = 0, $variableOrMethod = '')
57 57
     {
58 58
         $translation = null;
59
-        if (! $countryID) {
59
+        if (!$countryID) {
60 60
             $countryObject = CountryPrice_EcommerceCountry::get_real_country();
61 61
             if ($countryObject) {
62 62
                 $countryID = $countryObject->ID;
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             foreach ($fieldsToReplace as $replaceFields) {
77 77
                 $pageField = $replaceFields->PageField;
78 78
                 $translationField = $replaceFields->TranslationField;
79
-                if (! $variableOrMethod || $variableOrMethod === $pageField) {
79
+                if (!$variableOrMethod || $variableOrMethod === $pageField) {
80 80
                     if ($translation->hasMethod($translationField)) {
81 81
                         $pageFieldTranslated = $pageField.'Translated';
82 82
                         $this->owner->$pageField = $translation->$translationField();
Please login to merge, or discard this patch.