Skip to content

Commit 73f5ddf

Browse files
author
Stanislav Idolov
committed
magento-engcom/magento2ce#4253 Code style fixes
1 parent 262abb6 commit 73f5ddf

File tree

3 files changed

+9
-4
lines changed

3 files changed

+9
-4
lines changed

app/code/Magento/Catalog/Model/Product/Url.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class Url extends \Magento\Framework\DataObject
3030
protected $filter;
3131

3232
/**
33-
* Store manager
34-
*
3533
* @var \Magento\Store\Model\StoreManagerInterface
3634
*/
3735
protected $storeManager;

app/code/Magento/QuoteGraphQl/etc/schema.graphqls

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# See COPYING.txt for license details.
33

44
type Query {
5+
"""phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
56
cart(cart_id: String!): Cart @resolver (class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\Cart") @doc(description:"Returns information about shopping cart") @cache(cacheable: false)
67
customerCart: Cart! @resolver (class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\CustomerCart") @doc(description:"Returns information about the customer shopping cart") @cache(cacheable: false)
78
}
@@ -18,9 +19,13 @@ type Mutation {
1819
setBillingAddressOnCart(input: SetBillingAddressOnCartInput): SetBillingAddressOnCartOutput @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetBillingAddressOnCart")
1920
setShippingMethodsOnCart(input: SetShippingMethodsOnCartInput): SetShippingMethodsOnCartOutput @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetShippingMethodsOnCart")
2021
setPaymentMethodOnCart(input: SetPaymentMethodOnCartInput): SetPaymentMethodOnCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\SetPaymentMethodOnCart")
22+
"""phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
2123
setGuestEmailOnCart(input: SetGuestEmailOnCartInput): SetGuestEmailOnCartOutput @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\SetGuestEmailOnCart")
24+
"""phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
2225
setPaymentMethodAndPlaceOrder(input: SetPaymentMethodAndPlaceOrderInput): PlaceOrderOutput @deprecated(reason: "Should use setPaymentMethodOnCart and placeOrder mutations in single request.") @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\SetPaymentAndPlaceOrder")
26+
"""phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
2327
assignCustomerToGuestCart(cart_id: String!): Cart! @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AssignCustomerToGuestCart") @doc(description:"Assign a logged in customer to the specified guest shopping cart.")
28+
"""phpcs:ignore Magento2.GraphQL.ValidArgumentName"""
2429
mergeCarts(source_cart_id: String!, destination_cart_id: String): Cart! @doc(description:"Merges the source cart into the destination cart") @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\MergeCarts")
2530
placeOrder(input: PlaceOrderInput): PlaceOrderOutput @resolver(class: "\\Magento\\QuoteGraphQl\\Model\\Resolver\\PlaceOrder")
2631
addProductsToCart(cartId: String!, cartItems: [CartItemInput!]!): AddProductsToCartOutput @doc(description:"Add any type of product to the cart") @resolver(class: "Magento\\QuoteGraphQl\\Model\\Resolver\\AddProductsToCart")

dev/tests/api-functional/testsuite/Magento/GraphQl/Quote/Customer/AssignCustomerToGuestCartTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public function testAssignCustomerToGuestCart(): void
7171
$this->assertArrayHasKey('assignCustomerToGuestCart', $response);
7272
$this->assertArrayHasKey('items', $response['assignCustomerToGuestCart']);
7373
$items = $response['assignCustomerToGuestCart']['items'];
74-
$this->assertCount(2,$items);
74+
$this->assertCount(2, $items);
7575

7676
$this->assertEquals($customerQuoteItem->getQty(), $items[1]['quantity']);
7777
$this->assertEquals($customerQuoteItem->getSku(), $items[1]['product']['sku']);
@@ -147,7 +147,9 @@ public function testAssignCustomerToCustomerCart(): void
147147
$customerQuoteMaskedId = $this->quoteIdToMaskedId->execute((int)$customerQuote->getId());
148148

149149
$this->expectException(\Exception::class);
150-
$this->expectExceptionMessage("The current user cannot perform operations on cart \"{$customerQuoteMaskedId}\"");
150+
$this->expectExceptionMessage(
151+
"The current user cannot perform operations on cart \"{$customerQuoteMaskedId}\""
152+
);
151153

152154
$this->graphQlMutation(
153155
$this->getAssignCustomerToGuestCartMutation($customerQuoteMaskedId),

0 commit comments

Comments
 (0)