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

Commit 6b74b21

Browse files
committed
MAGETWO-89990: Multishipping
1 parent fd021f6 commit 6b74b21

27 files changed

+79
-16
lines changed

app/code/Magento/Multishipping/Block/Checkout/Results.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Multishipping\Block\Checkout;
79

810
use Magento\Customer\Model\Address\Config as AddressConfig;
@@ -37,11 +39,6 @@ class Results extends Success
3739
*/
3840
private $session;
3941

40-
/**
41-
* @var Multishipping
42-
*/
43-
private $multishipping;
44-
4542
/**
4643
* @param Context $context
4744
* @param Multishipping $multishipping
@@ -60,7 +57,6 @@ public function __construct(
6057
) {
6158
parent::__construct($context, $multishipping, $data);
6259

63-
$this->multishipping = $multishipping;
6460
$this->addressConfig = $addressConfig;
6561
$this->orderRepository = $orderRepository;
6662
$this->session = $session;
@@ -73,7 +69,7 @@ public function __construct(
7369
*/
7470
public function getQuoteShippingAddresses(): array
7571
{
76-
return $this->multishipping->getQuote()->getAllShippingAddresses();
72+
return $this->_multishipping->getQuote()->getAllShippingAddresses();
7773
}
7874

7975
/**

app/code/Magento/Multishipping/Block/DataProviders/Billing.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Multishipping\Block\DataProviders;
79

810
use Magento\Framework\View\Element\Block\ArgumentInterface;

app/code/Magento/Multishipping/Block/DataProviders/Overview.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Multishipping\Block\DataProviders;
89

app/code/Magento/Multishipping/Block/DataProviders/Success.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
67

78
namespace Magento\Multishipping\Block\DataProviders;
89

app/code/Magento/Multishipping/Controller/Checkout/Results.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Multishipping\Controller\Checkout;
79

810
/**

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Multishipping\Model\Checkout\Type\Multishipping;
79

810
use Magento\Sales\Api\OrderManagementInterface;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Multishipping\Model\Checkout\Type\Multishipping;
79

810
use Magento\Framework\ObjectManagerInterface;

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,16 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Multishipping\Model\Checkout\Type\Multishipping;
79

810
use Magento\Sales\Api\Data\OrderInterface;
911

1012
/**
1113
* Place orders during multishipping checkout flow.
14+
*
15+
* @api
1216
*/
1317
interface PlaceOrderInterface
1418
{

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Multishipping\Model\Checkout\Type\Multishipping;
79

810
use Magento\Framework\ObjectManager\TMap;

app/code/Magento/Multishipping/Test/Unit/Model/Checkout/Type/Multishipping/PlaceOrderDefaultTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,17 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6+
declare(strict_types=1);
7+
68
namespace Magento\Multishipping\Test\Unit\Model\Checkout\Type\Multishipping;
79

810
use Magento\Multishipping\Model\Checkout\Type\Multishipping\PlaceOrderDefault;
911
use Magento\Sales\Api\Data\OrderInterface;
1012
use Magento\Sales\Api\OrderManagementInterface;
1113

14+
/**
15+
* Tests Magento\Multishipping\Model\Checkout\Type\Multishipping\PlaceOrderDefault.
16+
*/
1217
class PlaceOrderDefaultTest extends \PHPUnit\Framework\TestCase
1318
{
1419
/**

0 commit comments

Comments
 (0)