@@ -47,10 +47,10 @@ |
||
47 | 47 | $state = $address->state; |
48 | 48 | if(in_array($state, array_keys($statesMap))){ |
49 | 49 | $address->state_text = $statesMap[$state]; |
50 | - }else if (in_array($state, array_values($statesMap))){ |
|
50 | + } else if (in_array($state, array_values($statesMap))){ |
|
51 | 51 | $address->state = array_flip($statesMap)[$state]; |
52 | 52 | $address->state_text = $state; |
53 | - }else{ |
|
53 | + } else{ |
|
54 | 54 | $this->_setError($address, 'The state does not exist'); |
55 | 55 | } |
56 | 56 |