Completed
Push — master ( 7f402b...a6068b )
by Aimeos
10:08
created
lib/mshoplib/src/MShop/Catalog/Manager/Base.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
 	 * Creates the catalog item objects.
66 66
 	 *
67 67
 	 * @param array $itemMap Associative list of catalog ID / tree node pairs
68
-	 * @param array $domains List of domains (e.g. text, media) whose items should be attached to the catalog items
68
+	 * @param string[] $domains List of domains (e.g. text, media) whose items should be attached to the catalog items
69 69
 	 * @param string $prefix Domain prefix
70 70
 	 * @param array $local Associative list of IDs as keys and the associative array of items as values
71 71
 	 * @param array $local2 Associative list of IDs as keys and the associative array of items as values
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Common/Item/PropertyRef/Traits.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	 * Adds a new property item or overwrite an existing one
29 29
 	 *
30 30
 	 * @param \Aimeos\MShop\Product\Item\Property\Iface $item New or existing property item
31
-	 * @return \Aimeos\MShop\Common\Item\Iface Self object for method chaining
31
+	 * @return Traits Self object for method chaining
32 32
 	 */
33 33
 	public function addPropertyItem( \Aimeos\MShop\Product\Item\Property\Iface $item )
34 34
 	{
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 	/**
43 43
 	 * Removes an existing property item
44 44
 	 *
45
-	 * @param \Aimeos\MShop\Product\Item\Property\Iface $item Existing property item
46
-	 * @return \Aimeos\MShop\Common\Item\Iface Self object for method chaining
45
+	 * @param \Aimeos\MShop\Common\Item\Property\Iface $item Existing property item
46
+	 * @return Traits Self object for method chaining
47 47
 	 * @throws \Aimeos\MShop\Exception If given property item isn't found
48 48
 	 */
49 49
 	public function deletePropertyItem( \Aimeos\MShop\Product\Item\Property\Iface $item )
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
 	 * Removes a list of existing property items
68 68
 	 *
69 69
 	 * @param \Aimeos\MShop\Common\Item\Property\Iface[] $items Existing property items
70
-	 * @return \Aimeos\MShop\Common\Item\Iface Self object for method chaining
70
+	 * @return Traits Self object for method chaining
71 71
 	 * @throws \Aimeos\MShop\Exception If a property item isn't found
72 72
 	 */
73 73
 	public function deletePropertyItems( array $items )
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 	 */
33 33
 	public function addPropertyItem( \Aimeos\MShop\Product\Item\Property\Iface $item )
34 34
 	{
35
-		$id = $item->getId() ?: 'id-' . $this->propMax++;
35
+		$id = $item->getId() ?: 'id-'.$this->propMax++;
36 36
 		$this->propItems[$id] = $item;
37 37
 
38 38
 		return $this;
Please login to merge, or discard this patch.
lib/mshoplib/src/MShop/Common/Manager/PropertyRef/Traits.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -52,9 +52,9 @@
 block discarded – undo
52 52
 	/**
53 53
 	 * Adds new, updates existing and deletes removed property items
54 54
 	 *
55
-	 * @param \Aimeos\MShop\Common\Item\ListRef\Iface $item Item with referenced items
55
+	 * @param \Aimeos\MShop\Common\Item\PropertyRef\Iface $item Item with referenced items
56 56
 	 * @param string $domain Domain of the calling manager
57
-	 * @return \Aimeos\MShop\Common\Item\ListRef\Iface Item with saved referenced items
57
+	 * @return \Aimeos\MShop\Common\Item\PropertyRef\Iface Item with saved referenced items
58 58
 	 */
59 59
 	protected function savePropertyItems( \Aimeos\MShop\Common\Item\PropertyRef\Iface $item, $domain )
60 60
 	{
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@
 block discarded – undo
36 36
 			$propManager = $this->getObject()->getSubManager( 'property' );
37 37
 
38 38
 			$propSearch = $propManager->createSearch();
39
-			$propSearch->setConditions( $propSearch->compare( '==', $domain . '.property.parentid', $parentIds ) );
40
-			$propSearch->setSortations( [$propSearch->sort( '+', $domain . '.property.type.position' )] );
39
+			$propSearch->setConditions( $propSearch->compare( '==', $domain.'.property.parentid', $parentIds ) );
40
+			$propSearch->setSortations( [$propSearch->sort( '+', $domain.'.property.type.position' )] );
41 41
 			$propSearch->setSlice( 0, 0x7fffffff );
42 42
 
43 43
 			foreach( $propManager->searchItems( $propSearch ) as $id => $propItem ) {
Please login to merge, or discard this patch.