Completed
Push — master ( 0055c6...394be6 )
by Nicolaas
02:56
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.