@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | |
101 | 101 | $countryList = []; |
102 | 102 | foreach ($this->countries as $country) { |
103 | - $countryList[$country->getIsoAlpha2()] = $country->getEmoji(). " " . $country->getName(); |
|
103 | + $countryList[$country->getIsoAlpha2()] = $country->getEmoji() . " " . $country->getName(); |
|
104 | 104 | } |
105 | 105 | return $countryList; |
106 | 106 | } |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | $params = []; |
141 | 141 | if (!empty($this->disabledFields)) { |
142 | 142 | $requiredFields = array_diff(Address::$defaultRequiredFields, $this->disabledFields); |
143 | - $params['requiredFields'] = $requiredFields; |
|
143 | + $params['requiredFields'] = $requiredFields; |
|
144 | 144 | } |
145 | 145 | $this->address = new Address($params); |
146 | 146 | } |
@@ -149,8 +149,8 @@ discard block |
||
149 | 149 | $this->country = country($this->allowedCountries[0]); |
150 | 150 | $this->address->country = $this->country->getIsoAlpha2(); |
151 | 151 | } |
152 | - if(!empty($this->defaultCountry)) { |
|
153 | - if(!in_array($this->defaultCountry, $this->allowedCountries) && !empty($this->allowedCountries)) { |
|
152 | + if (!empty($this->defaultCountry)) { |
|
153 | + if (!in_array($this->defaultCountry, $this->allowedCountries) && !empty($this->allowedCountries)) { |
|
154 | 154 | throw new ErrorException("the set defaultCounty '{$this->defaultCountry}' must be one of the configured allowedCountries"); |
155 | 155 | } |
156 | 156 | $this->country = country($this->defaultCountry); |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | 'addressLine2' => Yii::t("addressform", "2nd floor, room 203"), |
183 | 183 | ]; |
184 | 184 | foreach ($defaults as $key => $value) { |
185 | - if(!isset($this->placeHolders[$key])) { |
|
185 | + if (!isset($this->placeHolders[$key])) { |
|
186 | 186 | $this->placeHolders[$key] = $value; |
187 | 187 | } |
188 | 188 | } |