Passed
Push — master ( 40a1f5...6c67be )
by Aimeos
02:45
created
controller/frontend/src/Controller/Frontend/Basket/Standard.php 1 patch
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -365,16 +365,13 @@
 block discarded – undo
365 365
 		if( $value instanceof \Aimeos\MShop\Common\Item\Address\Iface )
366 366
 		{
367 367
 			$this->get()->addAddress( $address->copyFrom( $value ), $type, 0 );
368
-		}
369
-		else if( is_array( $value ) )
368
+		} else if( is_array( $value ) )
370 369
 		{
371 370
 			$this->get()->addAddress( $this->setAddressFromArray( $address, $value ), $type, 0 );
372
-		}
373
-		else if( $value === null )
371
+		} else if( $value === null )
374 372
 		{
375 373
 			$this->get()->deleteAddress( $type );
376
-		}
377
-		else
374
+		} else
378 375
 		{
379 376
 			$msg = $context->getI18n()->dt( 'controller/frontend', 'Invalid value for address type "%1$s"' );
380 377
 			throw new \Aimeos\Controller\Frontend\Basket\Exception( sprintf( $msg, $type ) );
Please login to merge, or discard this patch.