Skip to content

Commit 33c7de9

Browse files
Fixes for PHPCS
1 parent c0ce7ea commit 33c7de9

File tree

5 files changed

+17
-4
lines changed

5 files changed

+17
-4
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/GroupPrice/AbstractGroupPrice.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ public function validate($object)
186186
}
187187
$compare = implode(
188188
'-',
189+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
189190
array_merge(
190191
[$priceRow['website_id'], $priceRow['cust_group']],
191192
$this->_getAdditionalUniqueFields($priceRow)
@@ -209,6 +210,7 @@ public function validate($object)
209210
if ($price['website_id'] == 0) {
210211
$compare = implode(
211212
'-',
213+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
212214
array_merge(
213215
[$price['website_id'], $price['cust_group']],
214216
$this->_getAdditionalUniqueFields($price)
@@ -233,6 +235,7 @@ public function validate($object)
233235

234236
$globalCompare = implode(
235237
'-',
238+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
236239
array_merge([0, $priceRow['cust_group']], $this->_getAdditionalUniqueFields($priceRow))
237240
);
238241
$websiteCurrency = $rates[$priceRow['website_id']]['code'];
@@ -278,6 +281,7 @@ public function preparePriceData(array $priceData, $productTypeId, $websiteId)
278281
if (!array_filter($v)) {
279282
continue;
280283
}
284+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
281285
$key = implode('-', array_merge([$v['cust_group']], $this->_getAdditionalUniqueFields($v)));
282286
if ($v['website_id'] == $websiteId) {
283287
$data[$key] = $v;

lib/internal/Magento/Framework/App/ObjectManager/ConfigLoader/Compiled.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?php
22
/**
3-
*
43
* Copyright © Magento, Inc. All rights reserved.
54
* See COPYING.txt for license details.
65
*/
76
namespace Magento\Framework\App\ObjectManager\ConfigLoader;
87

98
use Magento\Framework\App\Filesystem\DirectoryList;
109
use Magento\Framework\ObjectManager\ConfigLoaderInterface;
11-
use Magento\Framework\Serialize\SerializerInterface;
12-
use Magento\Framework\Serialize\Serializer\Serialize;
1310

11+
/**
12+
* Class Compiled
13+
*/
1414
class Compiled implements ConfigLoaderInterface
1515
{
1616
/**
@@ -21,7 +21,7 @@ class Compiled implements ConfigLoaderInterface
2121
private $configCache = [];
2222

2323
/**
24-
* {inheritdoc}
24+
* @inheritdoc
2525
*/
2626
public function load($area)
2727
{

lib/internal/Magento/Framework/Module/Dir.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
use Magento\Framework\Component\ComponentRegistrar;
1111
use Magento\Framework\Component\ComponentRegistrarInterface;
1212

13+
/**
14+
* Class Dir
15+
*/
1316
class Dir
1417
{
1518
/**#@+

lib/internal/Magento/Framework/Phrase/Renderer/Translate.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Magento\Framework\TranslateInterface;
1212
use Psr\Log\LoggerInterface;
1313

14+
/**
15+
* Class Translate
16+
*/
1417
class Translate implements RendererInterface
1518
{
1619
/**

lib/internal/Magento/Framework/View/Element/AbstractBlock.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*
1717
* Marked as public API because it is actively used now.
1818
*
19+
* phpcs:disable Magento2.Classes.AbstractApi
1920
* @api
2021
* @SuppressWarnings(PHPMD.ExcessivePublicCount)
2122
* @SuppressWarnings(PHPMD.ExcessiveClassComplexity)
@@ -244,6 +245,8 @@ public function getRequest()
244245
* Please override this one instead of overriding real __construct constructor
245246
*
246247
* @return void
248+
*
249+
* phpcs:disable Magento2.CodeAnalysis.EmptyBlock
247250
*/
248251
protected function _construct()
249252
{

0 commit comments

Comments
 (0)