Completed
Push — master ( bd5823...eba9ef )
by Nicolaas
05:22 queued 02:45
created
code/model/money/CountryPrice_EcommerceCurrency.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -44,10 +44,10 @@  discard block
 block discarded – undo
44 44
             $currencyCode = isset($currencyPerCountry[$countryCode]) ? $currencyPerCountry[$countryCode] : EcommerceCurrency::default_currency_code();
45 45
             $currencyDO = EcommerceCurrency::get_one_from_code($currencyCode);
46 46
         }
47
-        if (! $currencyDO) {
47
+        if (!$currencyDO) {
48 48
             $currencyDO = EcommerceCurrency::create_new($currencyCode);
49 49
         }
50
-        if (! $currencyDO) {
50
+        if (!$currencyDO) {
51 51
             $currencyDO = EcommerceCurrency::get_default();
52 52
         }
53 53
         return $currencyDO;
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
     {
68 68
         $cachekey = "EcommerceCurrencyCountryMatrix";
69 69
         $cache = SS_Cache::factory('CountryPrice_EcommerceCurrency');
70
-        if (! ($serializedArray = $cache->load($cachekey))) {
70
+        if (!($serializedArray = $cache->load($cachekey))) {
71 71
             $countries = CountryPrice_EcommerceCountry::get_real_countries_list();
72 72
             $unserializedArray = array();
73 73
             $defaultCurrencyCode = EcommerceCurrency::default_currency_code();
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
             return null;
131 131
         }
132 132
         $key = $this->owner->ClassName.'____'.$countryCode;
133
-        if (! isset(self::$_money_object_currency[$key])) {
133
+        if (!isset(self::$_money_object_currency[$key])) {
134 134
             if (is_null($currencyCode)) {
135 135
                 $currency = CountryPrice_EcommerceCurrency::get_currency_for_country($countryCode);
136 136
                 if ($currency) {
Please login to merge, or discard this patch.