Skip to content

Commit 588a425

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-94329' into 2.3-develop-pr34
2 parents d51f195 + 640d844 commit 588a425

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

app/code/Magento/Multishipping/Model/Checkout/Type/Multishipping.php

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,6 @@ class Multishipping extends \Magento\Framework\DataObject
176176
private $dataObjectHelper;
177177

178178
/**
179-
* Constructor
180-
*
181179
* @param \Magento\Checkout\Model\Session $checkoutSession
182180
* @param \Magento\Customer\Model\Session $customerSession
183181
* @param \Magento\Sales\Model\OrderFactory $orderFactory
@@ -202,8 +200,9 @@ class Multishipping extends \Magento\Framework\DataObject
202200
* @param array $data
203201
* @param \Magento\Quote\Api\Data\CartExtensionFactory|null $cartExtensionFactory
204202
* @param AllowedCountries|null $allowedCountryReader
205-
* @param Multishipping\PlaceOrderFactory $placeOrderFactory
206-
* @param LoggerInterface $logger
203+
* @param Multishipping\PlaceOrderFactory|null $placeOrderFactory
204+
* @param LoggerInterface|null $logger
205+
* @param \Magento\Framework\Api\DataObjectHelper|null $dataObjectHelper
207206
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
208207
*/
209208
public function __construct(
@@ -272,6 +271,7 @@ public function __construct(
272271

273272
/**
274273
* Initialize multishipping checkout.
274+
*
275275
* Split virtual/not virtual items between default billing/shipping addresses
276276
*
277277
* @return \Magento\Multishipping\Model\Checkout\Type\Multishipping
@@ -337,6 +337,7 @@ protected function _init()
337337

338338
/**
339339
* Get quote items assigned to different quote addresses populated per item qty.
340+
*
340341
* Based on result array we can display each item separately
341342
*
342343
* @return array
@@ -397,7 +398,7 @@ public function removeAddressItem($addressId, $itemId)
397398
/**
398399
* Assign quote items to addresses and specify items qty
399400
*
400-
* array structure:
401+
* Array structure:
401402
* array(
402403
* $quoteItemId => array(
403404
* 'qty' => $qty,
@@ -928,6 +929,8 @@ public function getMinimumAmountDescription()
928929
}
929930

930931
/**
932+
* Get minimum amount error.
933+
*
931934
* @return string
932935
*/
933936
public function getMinimumAmountError()
@@ -1072,7 +1075,7 @@ public function getCustomer()
10721075
/**
10731076
* Check if specified address ID belongs to customer.
10741077
*
1075-
* @param $addressId
1078+
* @param mixed $addressId
10761079
* @return bool
10771080
*/
10781081
protected function isAddressIdApplicable($addressId)
@@ -1085,6 +1088,8 @@ protected function isAddressIdApplicable($addressId)
10851088
}
10861089

10871090
/**
1091+
* Prepare shipping assignment.
1092+
*
10881093
* @param \Magento\Quote\Model\Quote $quote
10891094
* @return \Magento\Quote\Model\Quote
10901095
*/
@@ -1105,6 +1110,8 @@ private function prepareShippingAssignment($quote)
11051110
}
11061111

11071112
/**
1113+
* Get shipping assignment processor.
1114+
*
11081115
* @return \Magento\Quote\Model\Quote\ShippingAssignment\ShippingAssignmentProcessor
11091116
*/
11101117
private function getShippingAssignmentProcessor()
@@ -1187,10 +1194,11 @@ private function searchQuoteAddressId(OrderInterface $order, array $addresses):
11871194
}
11881195

11891196
/**
1197+
* Get quote address errors.
1198+
*
11901199
* @param OrderInterface[] $orders
11911200
* @param \Magento\Quote\Model\Quote\Address[] $addresses
11921201
* @param \Exception[] $exceptionList
1193-
*
11941202
* @return string[]
11951203
* @throws NotFoundException
11961204
*/

0 commit comments

Comments
 (0)