Skip to content

Commit 6c05a8b

Browse files
committed
ACPT-1709: Clean up skip-list for GraphQlState Test
-- fix test failures
1 parent 813ebc6 commit 6c05a8b

File tree

11 files changed

+26
-15
lines changed

11 files changed

+26
-15
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
use Magento\Framework\Xml\ParserFactory as ParserXmlFactory;
2020
use PHPUnit\Framework\MockObject\MockObject;
2121

22+
/**
23+
* A Test for RequestTypeBasedDeserializer
24+
*
25+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
26+
*/
2227
class RequestTypeBasedDeserializerTest extends \PHPUnit\Framework\TestCase
2328
{
2429
/** @var RequestTypeBasedDeserializer */

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525

2626
/**
2727
* DataProvider for building super attribute options in buy requests
28+
*
29+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2830
*/
2931
class SuperAttributeDataProvider implements BuyRequestDataProviderInterface
3032
{
@@ -62,6 +64,7 @@ class SuperAttributeDataProvider implements BuyRequestDataProviderInterface
6264
* @param MetadataPool $metadataPool
6365
* @param StockStateInterface $stockState
6466
* @param ArrayManagerFactory|null $arrayManagerFactory
67+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
6568
*/
6669
public function __construct(
6770
ArrayManager $arrayManager,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class PayflowProAdditionalDataProvider implements AdditionalDataProviderInterfac
1818
{
1919
/**
2020
* @param ArrayManager $arrayManager
21-
*
21+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2222
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
2323
*/
2424
public function __construct(ArrayManager $arrayManager)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class PayflowProCcVaultAdditionalDataProvider implements AdditionalDataProviderI
1919

2020
/**
2121
* @param ArrayManager $arrayManager
22-
*
22+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2323
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
2424
*/
2525
public function __construct(ArrayManager $arrayManager)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class SetPaymentMethodOnCart
4141

4242
/**
4343
* @var ArrayManagerFactory
44-
*
4544
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
4645
*/
4746
private readonly ArrayManagerFactory $arrayManagerFactory;
@@ -63,6 +62,7 @@ class SetPaymentMethodOnCart
6362
* @param ConfigProvider $configProvider
6463
* @param array $allowedPaymentMethodCodes
6564
* @param ArrayManagerFactory|null $arrayManagerFactory
65+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
6666
*/
6767
public function __construct(
6868
CheckoutFactory $checkoutFactory,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class CustomizableOptionsDataProvider implements BuyRequestDataProviderInterface
1818
{
1919
/**
2020
* @var ArrayManagerFactory
21-
*
21+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2222
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2323
*/
2424
private readonly ArrayManagerFactory $arrayManagerFactory;

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class QuantityDataProvider implements BuyRequestDataProviderInterface
1919
{
2020
/**
2121
* @var ArrayManagerFactory
22-
*
22+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
2323
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
2424
*/
2525
private readonly ArrayManagerFactory $arrayManagerFactory;

app/code/Magento/Sales/Model/ResourceModel/Attribute.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,11 @@ protected function _beforeSaveAttribute(AbstractModel $object, $attribute)
8888
* Perform actions after object save
8989
*
9090
* @param AbstractModel $object
91-
* @param string $attribute
91+
* @param mixed $attribute
9292
* @return $this
9393
* @throws \Exception
9494
*/
95-
public function saveAttribute(AbstractModel $object, $attribute)
95+
public function saveAttribute(AbstractModel $object, mixed $attribute)
9696
{
9797
if ($attribute instanceof AbstractAttribute) {
9898
$attributes = $attribute->getAttributeCode();

lib/internal/Magento/Framework/MessageQueue/Topology/Config/Xml/Converter.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ class Converter implements \Magento\Framework\Config\ConverterInterface, ResetAf
2727
* Boolean value converter.
2828
*
2929
* @var BooleanUtils
30-
*
3130
* phpcs:disable Magento2.Commenting.ClassPropertyPHPDocFormatting
3231
*/
3332
private readonly BooleanUtils $booleanUtils;
@@ -66,6 +65,7 @@ public function __construct(
6665
/**
6766
* @inheritdoc
6867
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
68+
* phpcs:ignore Magento2.Performance.ForeachArrayMerge
6969
*/
7070
public function convert($source)
7171
{
@@ -93,14 +93,12 @@ public function convert($source)
9393
}
9494
}
9595

96-
// @codingStandardsIgnoreStart
9796
if (isset($result[$name . '--' . $connection]['bindings']) && count($bindings) > 0) {
9897
$bindings = array_merge($result[$name . '--' . $connection]['bindings'], $bindings);
9998
}
10099
if (isset($result[$name . '--' . $connection]['arguments']) && count($exchangeArguments) > 0) {
101100
$exchangeArguments = array_merge($result[$name . '--' . $connection]['arguments'], $exchangeArguments);
102101
}
103-
// @codingStandardsIgnoreEnd
104102

105103
$autoDelete = $this->getAttributeValue($exchange, 'autoDelete', false);
106104
$result[$name . '--' . $connection] = [

lib/internal/Magento/Framework/Model/ResourceModel/AbstractResource.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public function addCommitCallback($callback)
8282
/**
8383
* Commit resource transaction
8484
*
85-
* @deprecated @see \Magento\Framework\Model\ExecuteCommitCallbacks::afterCommit
85+
* @deprecated
86+
* @see \Magento\Framework\Model\ExecuteCommitCallbacks::afterCommit
8687
* @return $this
8788
*/
8889
public function commit()
@@ -248,7 +249,8 @@ protected function _getColumnsForEntityLoad(\Magento\Framework\Model\AbstractMod
248249
* Get serializer
249250
*
250251
* @return Json
251-
* @deprecated 101.0.0 @see not recommended anymore
252+
* @deprecated 101.0.0
253+
* @see not recommended anymore
252254
* @since 101.0.0
253255
*/
254256
protected function getSerializer()
@@ -263,7 +265,8 @@ protected function getSerializer()
263265
* Get logger
264266
*
265267
* @return \Psr\Log\LoggerInterface
266-
* @deprecated 101.0.1 @see not recommended anymore
268+
* @deprecated 101.0.1
269+
* @see not recommended anymore
267270
*/
268271
private function getLogger()
269272
{

0 commit comments

Comments
 (0)