Skip to content

Commit f524e64

Browse files
committed
Error CBO coupling between object.
1 parent 08ffd20 commit f524e64

File tree

1 file changed

+25
-32
lines changed

1 file changed

+25
-32
lines changed

app/code/Magento/Sales/Controller/Adminhtml/Order/AddressSave.php

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,6 @@
77

88
namespace Magento\Sales\Controller\Adminhtml\Order;
99

10-
use Magento\Backend\App\Action;
11-
use Magento\Sales\Api\OrderManagementInterface;
12-
use Magento\Sales\Api\OrderRepositoryInterface;
13-
use Magento\Directory\Model\RegionFactory;
14-
use Psr\Log\LoggerInterface;
15-
use Magento\Framework;
16-
1710
class AddressSave extends \Magento\Sales\Controller\Adminhtml\Order
1811
{
1912
/**
@@ -24,40 +17,40 @@ class AddressSave extends \Magento\Sales\Controller\Adminhtml\Order
2417
const ADMIN_RESOURCE = 'Magento_Sales::actions_edit';
2518

2619
/**
27-
* @var RegionFactory
20+
* @var \Magento\Directory\Model\RegionFactory
2821
*/
2922
private $regionFactory;
3023

3124
/**
32-
* @param Action\Context $context
33-
* @param Framework\Registry $coreRegistry
34-
* @param Framework\App\Response\Http\FileFactory $fileFactory
35-
* @param Framework\Translate\InlineInterface $translateInline
36-
* @param Framework\View\Result\PageFactory $resultPageFactory
37-
* @param Framework\Controller\Result\JsonFactory $resultJsonFactory
38-
* @param Framework\View\Result\LayoutFactory $resultLayoutFactory
39-
* @param Framework\Controller\Result\RawFactory $resultRawFactory
40-
* @param OrderManagementInterface $orderManagement
41-
* @param OrderRepositoryInterface $orderRepository
42-
* @param LoggerInterface $logger
43-
* @param RegionFactory $regionFactory
25+
* @param \Magento\Backend\App\Action\Context $context
26+
* @param \Magento\Framework\Registry $coreRegistry
27+
* @param \Magento\Framework\App\Response\Http\FileFactory $fileFactory
28+
* @param \Magento\Framework\Translate\InlineInterface $translateInline
29+
* @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
30+
* @param \Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory
31+
* @param \Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory
32+
* @param \Magento\Framework\Controller\Result\RawFactory $resultRawFactory
33+
* @param \Magento\Sales\Api\OrderManagementInterface $orderManagement
34+
* @param \Magento\Sales\Api\OrderRepositoryInterface $orderRepository
35+
* @param \Psr\Log\LoggerInterface $logger
36+
* @param \Magento\Directory\Model\RegionFactory $regionFactory
4437
*
4538
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
4639
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
4740
*/
4841
public function __construct(
49-
Action\Context $context,
50-
Framework\Registry $coreRegistry,
51-
Framework\App\Response\Http\FileFactory $fileFactory,
52-
Framework\Translate\InlineInterface $translateInline,
53-
Framework\View\Result\PageFactory $resultPageFactory,
54-
Framework\Controller\Result\JsonFactory $resultJsonFactory,
55-
Framework\View\Result\LayoutFactory $resultLayoutFactory,
56-
Framework\Controller\Result\RawFactory $resultRawFactory,
57-
OrderManagementInterface $orderManagement,
58-
OrderRepositoryInterface $orderRepository,
59-
LoggerInterface $logger,
60-
RegionFactory $regionFactory
42+
\Magento\Backend\App\Action\Context $context,
43+
\Magento\Framework\Registry $coreRegistry,
44+
\Magento\Framework\App\Response\Http\FileFactory $fileFactory,
45+
\Magento\Framework\Translate\InlineInterface $translateInline,
46+
\Magento\Framework\View\Result\PageFactory $resultPageFactory,
47+
\Magento\Framework\Controller\Result\JsonFactory $resultJsonFactory,
48+
\Magento\Framework\View\Result\LayoutFactory $resultLayoutFactory,
49+
\Magento\Framework\Controller\Result\RawFactory $resultRawFactory,
50+
\Magento\Sales\Api\OrderManagementInterface $orderManagement,
51+
\Magento\Sales\Api\OrderRepositoryInterface $orderRepository,
52+
\Psr\Log\LoggerInterface $logger,
53+
\Magento\Directory\Model\RegionFactory $regionFactory
6154
) {
6255
$this->regionFactory = $regionFactory;
6356
parent::__construct(

0 commit comments

Comments
 (0)