Passed
Push — master ( f19808...c54937 )
by Tõnis
07:18
created
AddressForm.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -160,10 +160,10 @@
 block discarded – undo
160 160
             $this->address->country = $this->country->getIsoAlpha2();
161 161
         }
162 162
         if(!empty($this->defaultCountry)) {
163
-          if(!in_array($this->defaultCountry, $this->allowedCountries) && !empty($this->allowedCountries))  {
164
-              throw new ErrorException("the set defaultCounty '{$this->defaultCountry}' must be one of the configured allowedCountries");
165
-          }
166
-          $this->country = country($this->defaultCountry);
163
+            if(!in_array($this->defaultCountry, $this->allowedCountries) && !empty($this->allowedCountries))  {
164
+                throw new ErrorException("the set defaultCounty '{$this->defaultCountry}' must be one of the configured allowedCountries");
165
+            }
166
+            $this->country = country($this->defaultCountry);
167 167
         }
168 168
 
169 169
         if (empty($this->submitText)) {
Please login to merge, or discard this patch.