@@ -431,17 +431,14 @@ |
||
| 431 | 431 | { |
| 432 | 432 | $address->copyFrom( $value ); |
| 433 | 433 | $this->get()->setAddress( $address, $type ); |
| 434 | - } |
|
| 435 | - else if( is_array( $value ) ) |
|
| 434 | + } else if( is_array( $value ) ) |
|
| 436 | 435 | { |
| 437 | 436 | $this->setAddressFromArray( $address, $value ); |
| 438 | 437 | $this->get()->setAddress( $address, $type ); |
| 439 | - } |
|
| 440 | - else if( $value === null ) |
|
| 438 | + } else if( $value === null ) |
|
| 441 | 439 | { |
| 442 | 440 | $this->get()->deleteAddress( $type ); |
| 443 | - } |
|
| 444 | - else |
|
| 441 | + } else |
|
| 445 | 442 | { |
| 446 | 443 | $msg = $context->getI18n()->dt( 'controller/frontend', 'Invalid value for address type "%1$s"' ); |
| 447 | 444 | throw new \Aimeos\Controller\Frontend\Basket\Exception( sprintf( $msg, $type ) ); |