Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 1259516

Browse files
committed
MAGETWO-77966: [2.2.x] - Unable to place order on environment with split database within PayPal Express Checkout
- fix after CR
1 parent e9f7f62 commit 1259516

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/code/Magento/Quote/Model/Quote.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ class Quote extends AbstractExtensibleModel implements \Magento\Quote\Api\Data\C
400400
* @param ShippingAssignmentFactory $shippingAssignmentFactory
401401
* @param \Magento\Framework\Model\ResourceModel\AbstractResource|null $resource
402402
* @param \Magento\Framework\Data\Collection\AbstractDb|null $resourceCollection
403-
* @param OrderIncrementIdChecker|null $orderIncrementIdChecker
404403
* @param array $data
404+
* @param OrderIncrementIdChecker|null $orderIncrementIdChecker
405405
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
406406
*/
407407
public function __construct(
@@ -444,8 +444,8 @@ public function __construct(
444444
\Magento\Quote\Model\ShippingAssignmentFactory $shippingAssignmentFactory,
445445
\Magento\Framework\Model\ResourceModel\AbstractResource $resource = null,
446446
\Magento\Framework\Data\Collection\AbstractDb $resourceCollection = null,
447-
OrderIncrementIdChecker $orderIncrementIdChecker = null,
448-
array $data = []
447+
array $data = [],
448+
OrderIncrementIdChecker $orderIncrementIdChecker = null
449449
) {
450450
$this->quoteValidator = $quoteValidator;
451451
$this->_catalogProduct = $catalogProduct;

app/code/Magento/Sales/Model/OrderIncrementIdChecker.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
namespace Magento\Sales\Model;
88

99
/**
10-
* Class OrderIncrementIdChecker
11-
* Check if order increment ID is already used.
10+
* This class uses for checking if reserved order id was already used for some order
1211
*/
1312
class OrderIncrementIdChecker
1413
{
@@ -28,6 +27,7 @@ public function __construct(ResourceModel\Order $resourceModel)
2827

2928
/**
3029
* Check if order increment ID is already used.
30+
*
3131
* Method can be used to avoid collisions of order IDs.
3232
*
3333
* @param int $orderIncrementId

0 commit comments

Comments
 (0)