Skip to content

Commit 77c0895

Browse files
committed
Merge branch ACPT-1666-2 into ACPT-1666
2 parents 591fa43 + 52ba990 commit 77c0895

File tree

31 files changed

+152
-102
lines changed

31 files changed

+152
-102
lines changed

app/code/Magento/BundleGraphQl/Model/Cart/BuyRequest/BundleDataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,14 @@ class BundleDataProvider implements BuyRequestDataProviderInterface
1919
{
2020
/**
2121
* @var ArrayManagerFactory
22+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2223
*/
2324
private readonly ArrayManagerFactory $arrayManagerFactory;
2425

2526
/**
2627
* @param ArrayManager $arrayManager @deprecated @see $arrayManagerFactory
2728
* @param ArrayManagerFactory|null $arrayManagerFactory
29+
*
2830
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2931
*/
3032
public function __construct(

app/code/Magento/Catalog/Test/Unit/Model/Product/Webapi/Rest/RequestTypeBasedDeserializerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020
use PHPUnit\Framework\MockObject\MockObject;
2121

2222
/**
23+
* A Test for RequestTypeBasedDeserializer
24+
*
2325
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2426
*/
2527
class RequestTypeBasedDeserializerTest extends \PHPUnit\Framework\TestCase

app/code/Magento/ConfigurableProductGraphQl/Model/Cart/BuyRequest/SuperAttributeDataProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ class SuperAttributeDataProvider implements BuyRequestDataProviderInterface
3232
{
3333
/**
3434
* @var ArrayManagerFactory
35+
*
36+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
3537
*/
3638
private readonly ArrayManagerFactory $arrayManagerFactory;
3739

app/code/Magento/Integration/Model/CustomUserContext.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ class CustomUserContext implements UserContextInterface
1414
{
1515
/**
1616
* @var int|null
17+
*
18+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
1719
*/
1820
private readonly ?int $userId;
1921

2022
/**
2123
* @var int|null
24+
*
25+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2226
*/
2327
private readonly ?int $userType;
2428

app/code/Magento/JwtUserToken/Model/Data/JwtUserContext.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ class JwtUserContext implements UserContextInterface
1414
{
1515
/**
1616
* @var int|null
17+
*
18+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
1719
*/
1820
private readonly ?int $userId;
1921

2022
/**
2123
* @var int|null
24+
*
25+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2226
*/
2327
private readonly ?int $userType;
2428

app/code/Magento/PaypalGraphQl/Model/PayflowProAdditionalDataProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ class PayflowProAdditionalDataProvider implements AdditionalDataProviderInterfac
1818
{
1919
/**
2020
* @param ArrayManager $arrayManager
21-
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
2221
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
22+
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
2323
*/
24-
public function __construct(
25-
ArrayManager $arrayManager
26-
) {
24+
public function __construct(ArrayManager $arrayManager)
25+
{
2726
}
2827

2928
/**

app/code/Magento/PaypalGraphQl/Model/PayflowProCcVaultAdditionalDataProvider.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ class PayflowProCcVaultAdditionalDataProvider implements AdditionalDataProviderI
1919

2020
/**
2121
* @param ArrayManager $arrayManager
22-
* phpcs:ignore Magento2.CodeAnalysis.EmptyBlock.DetectedFunction
2322
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
23+
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
2424
*/
25-
public function __construct(
26-
ArrayManager $arrayManager
27-
) {
25+
public function __construct(ArrayManager $arrayManager)
26+
{
2827
}
2928

3029
/**

app/code/Magento/PaypalGraphQl/Model/Plugin/Resolver/SetPaymentMethodOnCart.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,10 @@ class SetPaymentMethodOnCart
2929

3030
private const PATH_PAYMENT_METHOD_DATA = 'input/payment_method';
3131

32-
private $allowedPaymentMethodCodes = [];
32+
/**
33+
* @var array $allowedPaymentMethodCodes
34+
*/
35+
private array $allowedPaymentMethodCodes = [];
3336

3437
/**
3538
* @var CheckoutFactory
@@ -38,6 +41,7 @@ class SetPaymentMethodOnCart
3841

3942
/**
4043
* @var ArrayManagerFactory
44+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
4145
*/
4246
private readonly ArrayManagerFactory $arrayManagerFactory;
4347

app/code/Magento/Quote/Model/Quote/Address/Total/AbstractTotal.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
/**
1111
* Sales Quote Address Total abstract model
1212
*
13+
* phpcs:disable Magento2.Classes.AbstractApi
1314
* @api
1415
* @SuppressWarnings(PHPMD.NumberOfChildren)
1516
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
@@ -139,7 +140,7 @@ public function fetch(\Magento\Quote\Model\Quote $quote, \Magento\Quote\Model\Qu
139140
/**
140141
* Set address which can be used inside totals calculation
141142
*
142-
* @param \Magento\Quote\Model\Quote\Address $address
143+
* @param \Magento\Quote\Model\Quote\Address $address
143144
* @return $this
144145
*/
145146
protected function _setAddress(\Magento\Quote\Model\Quote\Address $address)
@@ -216,7 +217,7 @@ protected function _setBaseAmount($baseAmount)
216217
/**
217218
* Add total model amount value to address
218219
*
219-
* @param float $amount
220+
* @param float $amount
220221
* @return $this
221222
*/
222223
protected function _addAmount($amount)

app/code/Magento/QuoteGraphQl/Model/Cart/BuyRequest/CustomizableOptionsDataProvider.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ class CustomizableOptionsDataProvider implements BuyRequestDataProviderInterface
1818
{
1919
/**
2020
* @var ArrayManagerFactory
21+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
22+
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2123
*/
2224
private readonly ArrayManagerFactory $arrayManagerFactory;
2325

@@ -28,7 +30,7 @@ class CustomizableOptionsDataProvider implements BuyRequestDataProviderInterface
2830
*/
2931
public function __construct(
3032
ArrayManager $arrayManager,
31-
?ArrayManagerFactory $arrayManagerFactory = null,
33+
ArrayManagerFactory $arrayManagerFactory = null
3234
) {
3335
$this->arrayManagerFactory = $arrayManagerFactory
3436
?? ObjectManager::getInstance()->get(ArrayManagerFactory::class);

0 commit comments

Comments
 (0)