Skip to content

Commit 0097469

Browse files
MC-18527: Merge release branch into 2.3-develop
- fix static test failures
1 parent 7974821 commit 0097469

File tree

7 files changed

+10
-29
lines changed

7 files changed

+10
-29
lines changed

app/code/Magento/AdminAnalytics/Model/ResourceModel/Viewer/Logger.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818
*/
1919
class Logger
2020
{
21-
/**
22-
* Log table name
23-
*/
2421
const LOG_TABLE_NAME = 'admin_analytics_usage_version_log';
2522

2623
/**

app/code/Magento/Catalog/Model/Product/Compare/ListCompare.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*
1616
* @api
1717
* @SuppressWarnings(PHPMD.LongVariable)
18+
* @SuppressWarnings(PHPMD.CookieAndSessionMisuse)
1819
* @since 100.0.2
1920
*/
2021
class ListCompare extends \Magento\Framework\DataObject

app/code/Magento/Catalog/Test/Unit/Ui/Component/ColumnFactoryTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ protected function setUp(): void
6767
$this->uiComponentFactory->method('create')
6868
->willReturn($this->column);
6969

70-
$this->columnFactory = $this->objectManager->getObject(ColumnFactory::class, [
71-
'componentFactory' => $this->uiComponentFactory
72-
]);
70+
$this->columnFactory = $this->objectManager->getObject(
71+
ColumnFactory::class,
72+
['componentFactory' => $this->uiComponentFactory]
73+
);
7374
}
7475

7576
/**

app/code/Magento/Catalog/Ui/Component/Product/MassAction.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function prepare() : void
5252
foreach ($this->getChildComponents() as $actionComponent) {
5353
$actionType = $actionComponent->getConfiguration()['type'];
5454
if ($this->isActionAllowed($actionType)) {
55+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
5556
$config['actions'][] = array_merge($actionComponent->getConfiguration(), ['__disableTmpl' => true]);
5657
}
5758
}

app/code/Magento/Customer/Model/Visitor.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function bindCustomerLogout($observer)
265265
* Create binding of checkout quote
266266
*
267267
* @param \Magento\Framework\Event\Observer $observer
268-
* @return \Magento\Customer\Model\Visitor
268+
* @return \Magento\Customer\Model\Visitor
269269
*/
270270
public function bindQuoteCreate($observer)
271271
{
@@ -283,7 +283,7 @@ public function bindQuoteCreate($observer)
283283
* Destroy binding of checkout quote
284284
*
285285
* @param \Magento\Framework\Event\Observer $observer
286-
* @return \Magento\Customer\Model\Visitor
286+
* @return \Magento\Customer\Model\Visitor
287287
*/
288288
public function bindQuoteDestroy($observer)
289289
{

app/code/Magento/DownloadableImportExport/Model/Import/Product/Type/Downloadable.php

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,14 @@
1919
*/
2020
class Downloadable extends \Magento\CatalogImportExport\Model\Import\Product\Type\AbstractType
2121
{
22-
/**
23-
* Pair value separator.
24-
*/
2522
const PAIR_VALUE_SEPARATOR = '=';
2623

27-
/**
28-
* Default sort order
29-
*/
3024
const DEFAULT_SORT_ORDER = 0;
3125

32-
/**
33-
* Default number of downloads
34-
*/
3526
const DEFAULT_NUMBER_OF_DOWNLOADS = 0;
3627

37-
/**
38-
* Default is shareable
39-
*/
4028
const DEFAULT_IS_SHAREABLE = 2;
4129

42-
/**
43-
* Default website id
44-
*/
4530
const DEFAULT_WEBSITE_ID = 0;
4631

4732
/**
@@ -79,9 +64,6 @@ class Downloadable extends \Magento\CatalogImportExport\Model\Import\Product\Typ
7964
*/
8065
const COL_DOWNLOADABLE_LINKS = 'downloadable_links';
8166

82-
/**
83-
* Default group title
84-
*/
8567
const DEFAULT_GROUP_TITLE = '';
8668

8769
/**
@@ -786,6 +768,7 @@ protected function prepareSampleData($rowCol, $entityId = null)
786768
$rowCol
787769
);
788770
foreach ($options as $option) {
771+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
789772
$result[] = array_merge(
790773
$this->dataSample,
791774
['product_id' => $entityId],
@@ -810,6 +793,7 @@ protected function prepareLinkData($rowCol, $entityId = null)
810793
$rowCol
811794
);
812795
foreach ($options as $option) {
796+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
813797
$result[] = array_merge(
814798
$this->dataLink,
815799
['product_id' => $entityId],

app/code/Magento/ImportExport/Model/Import.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,6 @@ class Import extends AbstractModel
107107
*/
108108
const DEFAULT_GLOBAL_MULTI_VALUE_SEPARATOR = ',';
109109

110-
/**
111-
* default empty attribute value constant
112-
*/
113110
const DEFAULT_EMPTY_ATTRIBUTE_VALUE_CONSTANT = '__EMPTY__VALUE__';
114111
const DEFAULT_SIZE = 50;
115112
const MAX_IMPORT_CHUNKS = 4;

0 commit comments

Comments
 (0)