Completed
Push — master ( 24a86a...771b97 )
by Aimeos
10:31
created
lib/mshoplib/src/MShop/Common/Item/AddressRef/Traits.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 	 * Adds a new address item or overwrite an existing one
30 30
 	 *
31 31
 	 * @param \Aimeos\MShop\Common\Item\Address\Iface $item New or existing address item
32
-	 * @return \Aimeos\MShop\Common\Item\Iface Self object for method chaining
32
+	 * @return Traits Self object for method chaining
33 33
 	 */
34 34
 	public function addAddressItem( \Aimeos\MShop\Common\Item\Address\Iface $item )
35 35
 	{
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
 	 * Removes an existing address item
46 46
 	 *
47 47
 	 * @param \Aimeos\MShop\Common\Item\Address\Iface $item Existing address item
48
-	 * @return \Aimeos\MShop\Common\Item\Iface Self object for method chaining
48
+	 * @return Traits Self object for method chaining
49 49
 	 * @throws \Aimeos\MShop\Exception If given address item isn't found
50 50
 	 */
51 51
 	public function deleteAddressItem( \Aimeos\MShop\Common\Item\Address\Iface $item )
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 	 * Removes a list of existing address items
70 70
 	 *
71 71
 	 * @param \Aimeos\MShop\Common\Item\Address\Iface[] $items Existing address items
72
-	 * @return \Aimeos\MShop\Common\Item\Iface Self object for method chaining
72
+	 * @return Traits Self object for method chaining
73 73
 	 * @throws \Aimeos\MShop\Exception If an item isn't a address item or isn't found
74 74
 	 */
75 75
 	public function deleteAddressItems( array $items )
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 	 */
34 34
 	public function addAddressItem( \Aimeos\MShop\Common\Item\Address\Iface $item )
35 35
 	{
36
-		$id = $item->getId() ?: 'id-' . $this->addrMax++;
36
+		$id = $item->getId() ?: 'id-'.$this->addrMax++;
37 37
 		$this->addrItems[$id] = $item;
38 38
 		$this->addrSorted = null;
39 39
 
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Supplier/Manager/Standard.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
 	 *
254 254
 	 * @param \Aimeos\MShop\Supplier\Item\Iface $item Supplier item object
255 255
 	 * @param boolean $fetch True if the new ID should be returned in the item
256
-	 * @return \Aimeos\MShop\Common\Item\Iface $item Updated item including the generated ID
256
+	 * @return \Aimeos\MShop\Common\Item\ListRef\Iface $item Updated item including the generated ID
257 257
 	 */
258 258
 	public function saveItem( \Aimeos\MShop\Common\Item\Iface $item, $fetch = true )
259 259
 	{
@@ -434,6 +434,7 @@  discard block
 block discarded – undo
434 434
 	 * @param \Aimeos\MW\Criteria\Iface $search Search criteria object
435 435
 	 * @param string[] $ref List of domains to fetch list items and referenced items for
436 436
 	 * @param integer|null &$total Number of items that are available in total
437
+	 * @param integer $total
437 438
 	 * @return array List of supplier items implementing \Aimeos\MShop\Supplier\Item\Iface
438 439
 	 */
439 440
 	public function searchItems( \Aimeos\MW\Criteria\Iface $search, array $ref = [], &$total = null )
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Common/Manager/AddressRef/Traits.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 			$manager = $this->getObject()->getSubManager( 'address' );
37 37
 
38 38
 			$search = $manager->createSearch();
39
-			$search->setConditions( $search->compare( '==', $domain . '.address.parentid', $parentIds ) );
39
+			$search->setConditions( $search->compare( '==', $domain.'.address.parentid', $parentIds ) );
40 40
 			$search->setSlice( 0, 0x7fffffff );
41 41
 
42 42
 			foreach( $manager->searchItems( $search ) as $id => $addrItem ) {
Please login to merge, or discard this patch.