@@ -1386,7 +1386,7 @@ public function addShippingAddress(\Magento\Quote\Api\Data\AddressInterface $add
1386
1386
* Retrieve quote items collection
1387
1387
*
1388
1388
* @param bool $useCache
1389
- * @return \Magento\Eav\Model\Entity\Collection\AbstractCollection
1389
+ * @return \Magento\Eav\Model\Entity\Collection\AbstractCollection
1390
1390
*/
1391
1391
public function getItemsCollection ($ useCache = true )
1392
1392
{
@@ -1441,7 +1441,7 @@ public function getAllVisibleItems()
1441
1441
*/
1442
1442
public function hasItems ()
1443
1443
{
1444
- return sizeof ($ this ->getAllItems ()) > 0 ;
1444
+ return count ($ this ->getAllItems ()) > 0 ;
1445
1445
}
1446
1446
1447
1447
/**
@@ -1500,7 +1500,7 @@ public function getItemById($itemId)
1500
1500
/**
1501
1501
* Delete quote item. If it does not have identifier then it will be only removed from collection
1502
1502
*
1503
- * @param \Magento\Quote\Model\Quote\Item $item
1503
+ * @param \Magento\Quote\Model\Quote\Item $item
1504
1504
* @return $this
1505
1505
*/
1506
1506
public function deleteItem (\Magento \Quote \Model \Quote \Item $ item )
@@ -1530,7 +1530,7 @@ public function deleteItem(\Magento\Quote\Model\Quote\Item $item)
1530
1530
/**
1531
1531
* Remove quote item by item identifier
1532
1532
*
1533
- * @param int $itemId
1533
+ * @param int $itemId
1534
1534
* @return $this
1535
1535
*/
1536
1536
public function removeItem ($ itemId )
@@ -1581,7 +1581,7 @@ public function removeAllItems()
1581
1581
/**
1582
1582
* Adding new item to quote
1583
1583
*
1584
- * @param \Magento\Quote\Model\Quote\Item $item
1584
+ * @param \Magento\Quote\Model\Quote\Item $item
1585
1585
* @return $this
1586
1586
* @throws \Magento\Framework\Exception\LocalizedException
1587
1587
*/
@@ -2375,7 +2375,7 @@ public function hasVirtualItems()
2375
2375
/**
2376
2376
* Merge quotes
2377
2377
*
2378
- * @param Quote $quote
2378
+ * @param Quote $quote
2379
2379
* @return $this
2380
2380
*/
2381
2381
public function merge (Quote $ quote )
@@ -2613,7 +2613,7 @@ public function setExtensionAttributes(\Magento\Quote\Api\Data\CartExtensionInte
2613
2613
* Check is address allowed for store
2614
2614
*
2615
2615
* @param Address $address
2616
- * @param int|null $storeId
2616
+ * @param int|null $storeId
2617
2617
* @return bool
2618
2618
*/
2619
2619
private function isAddressAllowedForWebsite (Address $ address , $ storeId ): bool
0 commit comments