@@ -44,10 +44,10 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -128,8 +128,8 @@ discard block |
||
| 128 | 128 | return null; |
| 129 | 129 | } |
| 130 | 130 | $key = $this->owner->ClassName.'____'.$countryCode; |
| 131 | - if (! isset(self::$_money_object_currency[$key])) { |
|
| 132 | - if(is_null($currencyCode)){ |
|
| 131 | + if (!isset(self::$_money_object_currency[$key])) { |
|
| 132 | + if (is_null($currencyCode)) { |
|
| 133 | 133 | $currency = CountryPrice_EcommerceCurrency::get_currency_for_country($countryCode); |
| 134 | 134 | if ($currency) { |
| 135 | 135 | $currencyCode = strtoupper($currency->Code); |
@@ -133,8 +133,7 @@ |
||
| 133 | 133 | $currency = CountryPrice_EcommerceCurrency::get_currency_for_country($countryCode); |
| 134 | 134 | if ($currency) { |
| 135 | 135 | $currencyCode = strtoupper($currency->Code); |
| 136 | - } |
|
| 137 | - else { |
|
| 136 | + } else { |
|
| 138 | 137 | return null; |
| 139 | 138 | } |
| 140 | 139 | } |