Skip to content

Commit 799f37e

Browse files
author
Vasilii
committed
magento/graphql-ce:#468 - Fix codestyle issue
# Fixed issue "@throws annotation tags are added only when exception is thrown explicitly in the function"
1 parent b3280d0 commit 799f37e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

app/code/Magento/QuoteGraphQl/Model/Cart/CreateQuoteAddressByCustomerAddress.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,8 @@
99

1010
use Magento\CustomerGraphQl\Model\Customer\Address\GetCustomerAddress;
1111
use Magento\CustomerGraphQl\Model\Customer\GetCustomer;
12-
use Magento\Framework\GraphQl\Exception\GraphQlAuthenticationException;
13-
use Magento\Framework\GraphQl\Exception\GraphQlAuthorizationException;
14-
use Magento\Framework\GraphQl\Exception\GraphQlInputException;
15-
use Magento\Framework\GraphQl\Exception\GraphQlNoSuchEntityException;
16-
use Magento\Quote\Model\Quote\Address;
1712
use Magento\Framework\GraphQl\Query\Resolver\ContextInterface;
13+
use Magento\Quote\Model\Quote\Address;
1814

1915
/**
2016
* Creates a quote address based on given context, customer address ID and customer address
@@ -55,11 +51,8 @@ public function __construct(
5551
* @param ContextInterface $context
5652
* @param int|string|null $customerAddressId
5753
* @param array|null $customerAddress
54+
*
5855
* @return Address
59-
* @throws GraphQlAuthenticationException
60-
* @throws GraphQlAuthorizationException
61-
* @throws GraphQlInputException
62-
* @throws GraphQlNoSuchEntityException
6356
*/
6457
public function execute(
6558
ContextInterface $context,

0 commit comments

Comments
 (0)