Completed
Push — master ( f874d3...34d177 )
by Aimeos
08:55
created
lib/mshoplib/tests/MShop/Plugin/Provider/Order/ProductFreeOptionsTest.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -132,6 +132,9 @@
 block discarded – undo
132 132
 	}
133 133
 
134 134
 
135
+	/**
136
+	 * @param string $name
137
+	 */
135 138
 	protected function access( $name )
136 139
 	{
137 140
 		$class = new \ReflectionClass( '\Aimeos\MShop\Plugin\Provider\Order\ProductFreeOptions' );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 		$attribute->setQuantity( 2 );
55 55
 		$attribute->setCode( 'size' );
56 56
 		$attribute->setType( 'config' );
57
-		$attribute->setAttributeId( $attrManager->findItem( 'xs', [], 'product', 'size')->getId() );
57
+		$attribute->setAttributeId( $attrManager->findItem( 'xs', [], 'product', 'size' )->getId() );
58 58
 
59 59
 		$product->setAttributeItem( $attribute );
60 60
 		$product->setProductId( $prodManager->findItem( 'CNE' )->getId() );
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Plugin/Provider/Order/ProductFreeOptions.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@
 block discarded – undo
78 78
 			{
79 79
 				$list = $this->sortByPrice( $list, $attrQtys );
80 80
 				$priceItem = $this->addPrices( $priceItem, $list, $attrQtys, (int) $prodConf[$type] );
81
-			}
82
-			else
81
+			} else
83 82
 			{
84 83
 				$priceItem = $this->addPrices( $priceItem, $list, $attrQtys, 0 );
85 84
 			}
Please login to merge, or discard this patch.