Completed
Push — master ( 394be6...291a36 )
by Nicolaas
04:43 queued 02:28
created
code/model/translations/CountryPrice_Translation.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -225,8 +225,7 @@
 block discarded – undo
225 225
             $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($link);
226 226
             if($hasCountrySegment){
227 227
                 $link = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($this->EcommerceCountry()->Code, $link);
228
-            }
229
-            else {
228
+            } else {
230 229
                 $link = CountryPrice_Translation::get_country_url_provider()->addCountryCodeToUrl($this->EcommerceCountry()->Code, $link);
231 230
             }
232 231
         }
Please login to merge, or discard this patch.
code/control/CountryPrice_Page_Controller_Extension.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,8 +99,7 @@
 block discarded – undo
99 99
         $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($oldURL);
100 100
         if($hasCountrySegment){
101 101
             $newURL = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($countryCode, $oldURL);
102
-        }
103
-        else {
102
+        } else {
104 103
             $newURL = CountryPrice_Translation::get_country_url_provider()->addCountryCodeToUrl($countryCode, $oldURL);
105 104
         }
106 105
 
Please login to merge, or discard this patch.
code/control/CountryPrice_ChangeCountryController.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -119,8 +119,7 @@
 block discarded – undo
119 119
             $hasCountrySegment = CountryPrice_Translation::get_country_url_provider()->hasCountrySegment($url);
120 120
             if($hasCountrySegment){
121 121
                 $url = CountryPrice_Translation::get_country_url_provider()->replaceCountryCodeInUrl($newCountryCode, $url);
122
-            }
123
-            else {
122
+            } else {
124 123
                 $url = CountryPrice_Translation::get_country_url_provider()->addCountryCodeToUrl($newCountryCode, $url);
125 124
             }
126 125
             return $url;
Please login to merge, or discard this patch.
code/model/buyables/CountryPrice_BuyableExtension.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -123,8 +123,7 @@
 block discarded – undo
123 123
 
124 124
                 //no!
125 125
                 return false;
126
-            }
127
-            elseif ($this->owner->AllCountries) {
126
+            } elseif ($this->owner->AllCountries) {
128 127
                 //is there a valid price ???
129 128
                 if ($this->debug) {debug::log('All countries applies - updated  ... new price = '.floatval($this->owner->updateCalculatedPrice()));}
130 129
                 $canSell = true;
Please login to merge, or discard this patch.