@@ -311,17 +311,14 @@ |
||
| 311 | 311 | { |
| 312 | 312 | $address->copyFrom( $value ); |
| 313 | 313 | $this->get()->setAddress( $address, $type ); |
| 314 | - } |
|
| 315 | - else if( is_array( $value ) ) |
|
| 314 | + } else if( is_array( $value ) ) |
|
| 316 | 315 | { |
| 317 | 316 | $this->setAddressFromArray( $address, $value ); |
| 318 | 317 | $this->get()->setAddress( $address, $type ); |
| 319 | - } |
|
| 320 | - else if( $value === null ) |
|
| 318 | + } else if( $value === null ) |
|
| 321 | 319 | { |
| 322 | 320 | $this->get()->deleteAddress( $type ); |
| 323 | - } |
|
| 324 | - else |
|
| 321 | + } else |
|
| 325 | 322 | { |
| 326 | 323 | throw new \Aimeos\Controller\Frontend\Basket\Exception( sprintf( 'Invalid value for address type "%1$s"', $type ) ); |
| 327 | 324 | } |