Completed
Push — master ( 272a5c...1fc904 )
by Aimeos
08:57
created
lib/mshoplib/src/MShop/Order/Item/Base/Base.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -211,7 +211,6 @@
 block discarded – undo
211 211
 	 * Sets a modified order product item to the (future) order.
212 212
 	 *
213 213
 	 * @param \Aimeos\MShop\Order\Item\Base\Product\Iface $item Order product item to be added
214
-	 * @param integer $position Position id of the order product item
215 214
 	 */
216 215
 	public function editProduct( \Aimeos\MShop\Order\Item\Base\Product\Iface $item, $pos )
217 216
 	{
Please login to merge, or discard this patch.
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -171,8 +171,7 @@  discard block
 block discarded – undo
171 171
 			$quantity = $item->getQuantity();
172 172
 			$item = $this->products[$pos];
173 173
 			$item->setQuantity( $item->getQuantity() + $quantity );
174
-		}
175
-		else if( $position !== null )
174
+		} else if( $position !== null )
176 175
 		{
177 176
 			if( isset( $this->products[$position] ) )
178 177
 			{
@@ -189,13 +188,11 @@  discard block
 block discarded – undo
189 188
 
190 189
 				$products[$position] = $item;
191 190
 				$this->products = $products;
192
-			}
193
-			else
191
+			} else
194 192
 			{
195 193
 				$this->products[$position] = $item;
196 194
 			}
197
-		}
198
-		else
195
+		} else
199 196
 		{
200 197
 			$this->products[] = $item;
201 198
 		}
@@ -225,8 +222,7 @@  discard block
 block discarded – undo
225 222
 		{
226 223
 			$this->products[$pos] = $item;
227 224
 			$this->setModified();
228
-		}
229
-		else
225
+		} else
230 226
 		{
231 227
 			$this->products[$pos] = $item;
232 228
 		}
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Order/Item/Base/Iface.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
 	 * Returns the product item of an (future) order specified by its key.
84 84
 	 *
85 85
 	 * @param integer $key Key returned by getProducts() identifying the requested product
86
-	 * @return \Aimeos\MShop\Order\Product\Iface Product item of an order
86
+	 * @return Product\Iface Product item of an order
87 87
 	 */
88 88
 	public function getProduct( $key );
89 89
 
@@ -92,6 +92,7 @@  discard block
 block discarded – undo
92 92
 	 *
93 93
 	 * @param \Aimeos\MShop\Order\Item\Base\Product\Iface $item Order product item to be added
94 94
 	 * @param integer|null $position position of the new order product item
95
+	 * @return void
95 96
 	 */
96 97
 	public function addProduct( \Aimeos\MShop\Order\Item\Base\Product\Iface $item, $position = null );
97 98
 
@@ -100,6 +101,7 @@  discard block
 block discarded – undo
100 101
 	 *
101 102
 	 * @param \Aimeos\MShop\Order\Item\Base\Product\Iface $item Order product item to be added
102 103
 	 * @param integer $position Position id of the order product item
104
+	 * @return void
103 105
 	 */
104 106
 	public function editProduct( \Aimeos\MShop\Order\Item\Base\Product\Iface $item, $position );
105 107
 
@@ -162,6 +164,7 @@  discard block
 block discarded – undo
162 164
 	 *
163 165
 	 * @param \Aimeos\MShop\Order\Item\Base\Service\Iface $service Order service item for the given type
164 166
 	 * @param string $type Service type constant from \Aimeos\MShop\Order\Item\Service\Base
167
+	 * @return void
165 168
 	 */
166 169
 	public function setService( \Aimeos\MShop\Order\Item\Base\Service\Iface $service, $type );
167 170
 
Please login to merge, or discard this patch.