Skip to content

Commit 63e8de1

Browse files
committed
codestyle fixes
1 parent 940280d commit 63e8de1

File tree

1 file changed

+35
-36
lines changed

1 file changed

+35
-36
lines changed

app/code/Magento/Sales/Model/AdminOrder/Create.php

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -301,41 +301,40 @@ class Create extends \Magento\Framework\DataObject implements \Magento\Checkout\
301301
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
302302
*/
303303
public function __construct(
304-
\Magento\Framework\ObjectManagerInterface $objectManager,
305-
\Magento\Framework\Event\ManagerInterface $eventManager,
306-
\Magento\Framework\Registry $coreRegistry,
307-
\Magento\Sales\Model\Config $salesConfig,
308-
\Magento\Backend\Model\Session\Quote $quoteSession,
309-
\Psr\Log\LoggerInterface $logger,
310-
\Magento\Framework\DataObject\Copy $objectCopyService,
311-
\Magento\Framework\Message\ManagerInterface $messageManager,
312-
Product\Quote\Initializer $quoteInitializer,
313-
\Magento\Customer\Api\CustomerRepositoryInterface $customerRepository,
314-
\Magento\Customer\Api\AddressRepositoryInterface $addressRepository,
315-
\Magento\Customer\Api\Data\AddressInterfaceFactory $addressFactory,
316-
\Magento\Customer\Model\Metadata\FormFactory $metadataFormFactory,
317-
\Magento\Customer\Api\GroupRepositoryInterface $groupRepository,
318-
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
319-
\Magento\Sales\Model\AdminOrder\EmailSender $emailSender,
304+
\Magento\Framework\ObjectManagerInterface $objectManager,
305+
\Magento\Framework\Event\ManagerInterface $eventManager,
306+
\Magento\Framework\Registry $coreRegistry,
307+
\Magento\Sales\Model\Config $salesConfig,
308+
\Magento\Backend\Model\Session\Quote $quoteSession,
309+
\Psr\Log\LoggerInterface $logger,
310+
\Magento\Framework\DataObject\Copy $objectCopyService,
311+
\Magento\Framework\Message\ManagerInterface $messageManager,
312+
Product\Quote\Initializer $quoteInitializer,
313+
\Magento\Customer\Api\CustomerRepositoryInterface $customerRepository,
314+
\Magento\Customer\Api\AddressRepositoryInterface $addressRepository,
315+
\Magento\Customer\Api\Data\AddressInterfaceFactory $addressFactory,
316+
\Magento\Customer\Model\Metadata\FormFactory $metadataFormFactory,
317+
\Magento\Customer\Api\GroupRepositoryInterface $groupRepository,
318+
\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
319+
\Magento\Sales\Model\AdminOrder\EmailSender $emailSender,
320320
\Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry,
321-
\Magento\Quote\Model\Quote\Item\Updater $quoteItemUpdater,
322-
\Magento\Framework\DataObject\Factory $objectFactory,
323-
\Magento\Quote\Api\CartRepositoryInterface $quoteRepository,
324-
\Magento\Customer\Api\AccountManagementInterface $accountManagement,
325-
\Magento\Customer\Api\Data\CustomerInterfaceFactory $customerFactory,
326-
\Magento\Customer\Model\Customer\Mapper $customerMapper,
327-
\Magento\Quote\Api\CartManagementInterface $quoteManagement,
328-
\Magento\Framework\Api\DataObjectHelper $dataObjectHelper,
329-
\Magento\Sales\Api\OrderManagementInterface $orderManagement,
330-
\Magento\Quote\Model\QuoteFactory $quoteFactory,
331-
array $data = [],
332-
\Magento\Framework\Serialize\Serializer\Json $serializer = null,
333-
ExtensibleDataObjectConverter $dataObjectConverter = null,
334-
StoreManagerInterface $storeManager = null,
335-
CustomAttributeListInterface $customAttributeList = null,
336-
OrderRepositoryInterface $orderRepositoryInterface = null
337-
)
338-
{
321+
\Magento\Quote\Model\Quote\Item\Updater $quoteItemUpdater,
322+
\Magento\Framework\DataObject\Factory $objectFactory,
323+
\Magento\Quote\Api\CartRepositoryInterface $quoteRepository,
324+
\Magento\Customer\Api\AccountManagementInterface $accountManagement,
325+
\Magento\Customer\Api\Data\CustomerInterfaceFactory $customerFactory,
326+
\Magento\Customer\Model\Customer\Mapper $customerMapper,
327+
\Magento\Quote\Api\CartManagementInterface $quoteManagement,
328+
\Magento\Framework\Api\DataObjectHelper $dataObjectHelper,
329+
\Magento\Sales\Api\OrderManagementInterface $orderManagement,
330+
\Magento\Quote\Model\QuoteFactory $quoteFactory,
331+
array $data = [],
332+
\Magento\Framework\Serialize\Serializer\Json $serializer = null,
333+
ExtensibleDataObjectConverter $dataObjectConverter = null,
334+
StoreManagerInterface $storeManager = null,
335+
CustomAttributeListInterface $customAttributeList = null,
336+
OrderRepositoryInterface $orderRepositoryInterface = null
337+
) {
339338
$this->_objectManager = $objectManager;
340339
$this->_eventManager = $eventManager;
341340
$this->_coreRegistry = $coreRegistry;
@@ -890,8 +889,8 @@ public function moveQuoteItem($item, $moveTo, $qty)
890889

891890
$cartItems = $cart->getAllVisibleItems();
892891
$cartItemsToRestore = [];
893-
foreach ($cartItems as $value) {
894-
$cartItemsToRestore[$value->getData('item_id')] = $value->getData('item_id');
892+
foreach ($cartItems as $cartItem) {
893+
$cartItemsToRestore[$cartItem->getItemId()] = $cartItem->getItemId();
895894
}
896895
$canBeRestored = $this->restoreTransferredItem('cart', $cartItemsToRestore);
897896

0 commit comments

Comments
 (0)