Skip to content

Commit 4c6d478

Browse files
committed
ACPT-1550: Stabilize PR on app server branch
1 parent 300de16 commit 4c6d478

File tree

26 files changed

+274
-97
lines changed

26 files changed

+274
-97
lines changed

app/code/Magento/Backup/Model/Fs/Collection.php

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ class Collection extends \Magento\Framework\Data\Collection\Filesystem
2929
protected $_path = 'backups';
3030

3131
/**
32-
* Backup data
33-
*
3432
* @var \Magento\Backup\Helper\Data
3533
*/
3634
protected $_backupData = null;
@@ -46,7 +44,9 @@ class Collection extends \Magento\Framework\Data\Collection\Filesystem
4644
* @var \Magento\Framework\Filesystem
4745
*/
4846
private $_filesystem;
47+
4948
/**
49+
*
5050
* @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
5151
* @param \Magento\Backup\Helper\Data $backupData
5252
* @param \Magento\Framework\Filesystem $filesystem
@@ -68,6 +68,11 @@ public function __construct(
6868
$this->initialize();
6969
}
7070

71+
/**
72+
* Initialize collection
73+
*
74+
* @return void
75+
*/
7176
private function initialize() {
7277
// set collection specific params
7378
$extensions = $this->_backupData->getExtensions();

app/code/Magento/Catalog/Helper/Product/Flat/Indexer.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ class Indexer extends \Magento\Framework\App\Helper\AbstractHelper implements Re
2121
/**
2222
* Path to list of attributes used for flat indexer
2323
*/
24-
const XML_NODE_ATTRIBUTE_NODES = 'global/catalog/product/flat/attribute_groups';
24+
public const XML_NODE_ATTRIBUTE_NODES = 'global/catalog/product/flat/attribute_groups';
2525

2626
/**
2727
* Size of ids batch for reindex
2828
*/
29-
const BATCH_SIZE = 500;
29+
public const BATCH_SIZE = 500;
3030

3131
/**
3232
* Resource instance
@@ -50,7 +50,7 @@ class Indexer extends \Magento\Framework\App\Helper\AbstractHelper implements Re
5050
/**
5151
* Retrieve catalog product flat columns array in old format (used before MMDB support)
5252
*
53-
* @return array
53+
* @var array
5454
*/
5555
protected $_attributes;
5656

@@ -94,8 +94,6 @@ class Indexer extends \Magento\Framework\App\Helper\AbstractHelper implements Re
9494
protected $_flatAttributeGroups = [];
9595

9696
/**
97-
* Config factory
98-
*
9997
* @var \Magento\Catalog\Model\ResourceModel\ConfigFactory
10098
*/
10199
protected $_configFactory;
@@ -257,6 +255,7 @@ public function getFlatColumns()
257255
$this->isAddChildData()
258256
)->getFlatColumns();
259257
if ($columns !== null) {
258+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
260259
$this->_columns = array_merge($this->_columns, $columns);
261260
}
262261
}
@@ -333,6 +332,7 @@ public function getAttributeCodes()
333332

334333
foreach ($this->_flatAttributeGroups as $attributeGroupName) {
335334
$attributes = $this->_attributeConfig->getAttributeNames($attributeGroupName);
335+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
336336
$this->_systemAttributes = array_unique(array_merge($attributes, $this->_systemAttributes));
337337
}
338338

@@ -417,6 +417,7 @@ public function getFlatIndexes()
417417
$this->isAddChildData()
418418
)->getFlatIndexes();
419419
if ($indexes !== null) {
420+
// phpcs:ignore Magento2.Performance.ForeachArrayMerge
420421
$this->_indexes = array_merge($this->_indexes, $indexes);
421422
}
422423
}

app/code/Magento/Customer/Model/ResourceModel/Group/Grid/Collection.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
<?php
22
/**
3-
* Customer group collection
4-
*
53
* Copyright © Magento, Inc. All rights reserved.
64
* See COPYING.txt for license details.
75
*/
@@ -82,6 +80,7 @@ public function _resetState(): void
8280

8381
/**
8482
* Resource initialization
83+
*
8584
* @return $this
8685
*/
8786
protected function _initSelect()
@@ -92,6 +91,7 @@ protected function _initSelect()
9291
}
9392

9493
/**
94+
*
9595
* @return AggregationInterface
9696
*/
9797
public function getAggregations()
@@ -100,6 +100,7 @@ public function getAggregations()
100100
}
101101

102102
/**
103+
*
103104
* @param AggregationInterface $aggregations
104105
* @return $this
105106
*/

app/code/Magento/Eav/Model/AttributeDataFactory.php

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,17 @@
1515
*/
1616
class AttributeDataFactory implements ResetAfterRequestInterface
1717
{
18-
const OUTPUT_FORMAT_JSON = 'json';
19-
const OUTPUT_FORMAT_TEXT = 'text';
20-
const OUTPUT_FORMAT_HTML = 'html';
21-
const OUTPUT_FORMAT_PDF = 'pdf';
22-
const OUTPUT_FORMAT_ONELINE = 'oneline';
23-
const OUTPUT_FORMAT_ARRAY = 'array';
24-
25-
// available only for multiply attributes
18+
public const OUTPUT_FORMAT_JSON = 'json';
19+
public const OUTPUT_FORMAT_TEXT = 'text';
20+
public const OUTPUT_FORMAT_HTML = 'html';
21+
public const OUTPUT_FORMAT_PDF = 'pdf';
22+
public const OUTPUT_FORMAT_ONELINE = 'oneline';
23+
public const OUTPUT_FORMAT_ARRAY = 'array';
2624

2725
// available only for multiply attributes
26+
/**
27+
* @var array
28+
*/
2829
protected $_dataModels = [];
2930

3031
/**
@@ -52,6 +53,7 @@ public function __construct(
5253

5354
/**
5455
* Return attribute data model by attribute
56+
*
5557
* Set entity to data model (need for work)
5658
*
5759
* @param \Magento\Eav\Model\Attribute $attribute

app/code/Magento/Eav/Model/Config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -549,6 +549,8 @@ public function getAttributes($entityType)
549549
/**
550550
* Get attribute by code for entity type
551551
*
552+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
553+
* @SuppressWarnings(PHPMD.NPathComplexity)
552554
* @param mixed $entityType
553555
* @param mixed $code
554556
* @return AbstractAttribute

app/code/Magento/Quote/Model/Quote/Item/CartItemProcessorsPool.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
/**
1313
* @deprecated 100.1.0
14+
* @see Nothing
1415
*/
1516
class CartItemProcessorsPool implements ResetAfterRequestInterface
1617
{
@@ -27,15 +28,18 @@ class CartItemProcessorsPool implements ResetAfterRequestInterface
2728
/**
2829
* @param ConfigInterface $objectManagerConfig
2930
* @deprecated 100.1.0
31+
* @see Nothing
3032
*/
3133
public function __construct(ConfigInterface $objectManagerConfig)
3234
{
3335
$this->objectManagerConfig = $objectManagerConfig;
3436
}
3537

3638
/**
39+
*
3740
* @return CartItemProcessorInterface[]
3841
* @deprecated 100.1.0
42+
* @see Nothing
3943
*/
4044
public function getCartItemProcessors()
4145
{

app/code/Magento/Reports/Model/ResourceModel/Report/Collection.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
namespace Magento\Reports\Model\ResourceModel\Report;
1313

1414
/**
15-
* Class Collection
16-
*
1715
* @api
1816
* @since 100.0.2
1917
*/
@@ -41,8 +39,6 @@ class Collection extends \Magento\Framework\Data\Collection
4139
protected $_period;
4240

4341
/**
44-
* Intervals
45-
*
4642
* @var int
4743
*/
4844
protected $_intervals;

app/code/Magento/Sales/Model/ResourceModel/Order/Payment/Transaction/Collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ public function addOrderIdFilter($orderId)
139139

140140
/**
141141
* Payment ID filter setter
142+
*
142143
* Can take either the integer id or the payment instance
143144
*
144145
* @param \Magento\Sales\Model\Order\Payment|int $payment

app/code/Magento/SalesSequence/Model/Builder.php

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@
1313
use Psr\Log\LoggerInterface as Logger;
1414

1515
/**
16-
* Class Builder
17-
*
1816
* @api
1917
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2018
* @since 100.0.2
@@ -110,6 +108,7 @@ public function __construct(
110108
}
111109

112110
/**
111+
*
113112
* @param string $entityType
114113
* @return $this
115114
*/
@@ -120,6 +119,7 @@ public function setEntityType($entityType)
120119
}
121120

122121
/**
122+
*
123123
* @param int $storeId
124124
* @return $this
125125
*/
@@ -130,6 +130,7 @@ public function setStoreId($storeId)
130130
}
131131

132132
/**
133+
*
133134
* @param string $prefix
134135
* @return $this
135136
*/
@@ -140,6 +141,7 @@ public function setPrefix($prefix)
140141
}
141142

142143
/**
144+
*
143145
* @param string $suffix
144146
* @return $this
145147
*/
@@ -150,6 +152,7 @@ public function setSuffix($suffix)
150152
}
151153

152154
/**
155+
*
153156
* @param int $startValue
154157
* @return $this
155158
*/
@@ -160,6 +163,7 @@ public function setStartValue($startValue)
160163
}
161164

162165
/**
166+
*
163167
* @param int $step
164168
* @return $this
165169
*/
@@ -170,6 +174,7 @@ public function setStep($step)
170174
}
171175

172176
/**
177+
*
173178
* @param int $maxValue
174179
* @return $this
175180
*/
@@ -180,6 +185,7 @@ public function setMaxValue($maxValue)
180185
}
181186

182187
/**
188+
*
183189
* @param int $warningValue
184190
* @return $this
185191
*/

app/code/Magento/Store/Model/App/Emulation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ public function startEnvironmentEmulation(
144144
) {
145145
// Only allow a single level of emulation
146146
if ($this->initialEnvironmentInfo !== null) {
147-
$this->logger->error(__('Environment emulation nesting is not allowed.'));
147+
//$this->logger->error(__('Environment emulation nesting is not allowed.'));
148148
return;
149149
}
150150

0 commit comments

Comments
 (0)