Skip to content

Commit af6f847

Browse files
committed
Static test fix
1 parent 70d3a12 commit af6f847

File tree

23 files changed

+113
-29
lines changed

23 files changed

+113
-29
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Source/Status.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ public function getVisibleStatusIds()
3737
}
3838

3939
/**
40-
* Retrieve Saleable Status Ids
41-
* Default Product Enable status
40+
* Retrieve Saleable Status Ids, default Product Enable status
4241
*
4342
* @return int[]
4443
*/
@@ -51,6 +50,7 @@ public function getSaleableStatusIds()
5150
* Retrieve option array
5251
*
5352
* @return string[]
53+
* phpcs:disable Magento2.Functions.StaticFunction
5454
*/
5555
public static function getOptionArray()
5656
{

app/code/Magento/Catalog/Model/Product/Gallery/EntryResolver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99

1010
use Magento\Catalog\Model\Product;
1111

12+
/**
13+
* Manage entryes
14+
*/
1215
class EntryResolver
1316
{
1417
/**

app/code/Magento/Catalog/Model/ProductLink/Converter/ConverterPool.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66

77
namespace Magento\Catalog\Model\ProductLink\Converter;
88

9+
/**
10+
* Return converter by link type
11+
*/
912
class ConverterPool
1013
{
1114
/**

app/code/Magento/Catalog/Model/ProductLink/Link.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
namespace Magento\Catalog\Model\ProductLink;
88

99
/**
10+
* @inheritdoc
11+
*
1012
* @codeCoverageIgnore
1113
*/
1214
class Link extends \Magento\Framework\Model\AbstractExtensibleModel implements
@@ -169,7 +171,7 @@ public function setPosition($position)
169171
}
170172

171173
/**
172-
* {@inheritdoc}
174+
* @inheritdoc
173175
*
174176
* @return \Magento\Catalog\Api\Data\ProductLinkExtensionInterface|null
175177
*/
@@ -184,7 +186,7 @@ public function getExtensionAttributes()
184186
}
185187

186188
/**
187-
* {@inheritdoc}
189+
* @inheritdoc
188190
*
189191
* @param \Magento\Catalog\Api\Data\ProductLinkExtensionInterface $extensionAttributes
190192
* @return $this

app/code/Magento/Checkout/Block/Checkout/AttributeMerger.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,7 @@ protected function getMultilineFieldConfig($attributeCode, array $attributeConfi
289289
'dataScope' => $lineIndex,
290290
'provider' => $providerName,
291291
'validation' => $isFirstLine
292+
//phpcs:ignore Magento2.Performance.ForeachArrayMerge
292293
? array_merge(
293294
['required-entry' => (bool)$attributeConfig['required']],
294295
$attributeConfig['validation']
@@ -381,6 +382,7 @@ protected function getCustomer(): ?CustomerInterface
381382
/**
382383
* Retrieve field options from attribute configuration
383384
*
385+
* @param mixed $attributeCode
384386
* @param array $attributeConfig
385387
* @return array
386388
* @SuppressWarnings(PHPMD.UnusedFormalParameter)

app/code/Magento/Config/Model/Config/Structure/Element/Section.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace Magento\Config\Model\Config\Structure\Element;
77

88
/**
9-
* Section
9+
* Element section
1010
*
1111
* @api
1212
* @since 100.0.2

app/code/Magento/Customer/Ui/Component/Listing/Columns.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@
1212
use Magento\Customer\Ui\Component\Listing\Column\InlineEditUpdater;
1313
use Magento\Customer\Api\CustomerMetadataInterface;
1414

15+
/**
16+
* Columns component
17+
*/
1518
class Columns extends \Magento\Ui\Component\Listing\Columns
1619
{
1720
/**
@@ -63,6 +66,8 @@ public function __construct(
6366
}
6467

6568
/**
69+
* Return default sort order
70+
*
6671
* @return int
6772
*/
6873
protected function getDefaultSortOrder()
@@ -94,7 +99,7 @@ protected function updateActionColumnSortOrder()
9499
}
95100

96101
/**
97-
* {@inheritdoc}
102+
* @inheritdoc
98103
*/
99104
public function prepare()
100105
{
@@ -113,6 +118,8 @@ public function prepare()
113118
}
114119

115120
/**
121+
* Add column to the component
122+
*
116123
* @param array $attributeData
117124
* @param string $columnName
118125
* @return void
@@ -129,6 +136,8 @@ public function addColumn(array $attributeData, $columnName)
129136
}
130137

131138
/**
139+
* Update column in component
140+
*
132141
* @param array $attributeData
133142
* @param string $newAttributeCode
134143
* @return void

app/code/Magento/Deploy/Package/PackagePool.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ public function __construct(
6060
}
6161

6262
/**
63+
* Return package
64+
*
6365
* @param string $path
6466
* @return Package|null
6567
*/
@@ -70,6 +72,8 @@ public function getPackage($path)
7072
}
7173

7274
/**
75+
* Return packages
76+
*
7377
* @return Package[]
7478
*/
7579
public function getPackages()
@@ -79,6 +83,8 @@ public function getPackages()
7983
}
8084

8185
/**
86+
* Return theme model
87+
*
8288
* @param string $areaCode
8389
* @param string $themePath
8490
* @return ThemeInterface|null
@@ -93,6 +99,8 @@ public function getThemeModel($areaCode, $themePath)
9399
}
94100

95101
/**
102+
* Return packages from deployment
103+
*
96104
* @param array $options
97105
* @return Package[]
98106
*/
@@ -140,6 +148,8 @@ private function isAncestorForDeployedPackages(Package $excludedPackage, array $
140148
}
141149

142150
/**
151+
* Return theme by full path
152+
*
143153
* @param string $fullPath
144154
* @return ThemeInterface|null
145155
*/
@@ -154,6 +164,8 @@ private function getThemeByFullPath($fullPath)
154164
}
155165

156166
/**
167+
* Collect packages
168+
*
157169
* @param bool $recollect
158170
* @return void
159171
*/
@@ -244,6 +256,8 @@ private function checkPackageSkip(Package $package, array $options)
244256
}
245257

246258
/**
259+
* Check if can deploy area
260+
*
247261
* @param Package $package
248262
* @param array $options
249263
* @return bool
@@ -264,6 +278,8 @@ private function canDeployArea(Package $package, array $options)
264278
}
265279

266280
/**
281+
* Verify can deploy theme
282+
*
267283
* @param Package $package
268284
* @param array $options
269285
* @return bool
@@ -281,6 +297,8 @@ private function canDeployTheme(Package $package, array $options)
281297
}
282298

283299
/**
300+
* Verify can deploy locale
301+
*
284302
* @param Package $package
285303
* @param array $options
286304
* @return bool
@@ -297,6 +315,8 @@ private function canDeployLocale(Package $package, array $options)
297315
}
298316

299317
/**
318+
* Check if included entity
319+
*
300320
* @param string $entity
301321
* @param array $includedEntities
302322
* @param array $excludedEntities
@@ -316,6 +336,8 @@ private function isIncluded($entity, array $includedEntities, array $excludedEnt
316336
}
317337

318338
/**
339+
* Return option by name
340+
*
319341
* @param string $name
320342
* @param array $options
321343
* @return mixed|null
@@ -326,6 +348,8 @@ private function getOption($name, $options)
326348
}
327349

328350
/**
351+
* Ensure package exist
352+
*
329353
* @param array $params
330354
* @return void
331355
*/

app/code/Magento/Eav/Model/Api/SearchCriteria/CollectionProcessor/FilterProcessor.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
use Magento\Framework\Api\SearchCriteriaInterface;
1212
use Magento\Framework\Data\Collection\AbstractDb;
1313

14+
/**
15+
* SearchCriteria FilterProcessor
16+
*/
1417
class FilterProcessor implements CollectionProcessorInterface
1518
{
1619
/**

app/code/Magento/Eav/Model/TypeLocator/SimpleType.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ class SimpleType implements CustomAttributeTypeLocatorInterface
2828
private $serviceTypeList;
2929

3030
/**
31-
* Initialize dependencies.
31+
* Constructor
3232
*
3333
* @param AttributeRepositoryInterface $attributeRepository
34+
* @param ServiceTypeListInterface $serviceTypeList
3435
*/
3536
public function __construct(
3637
AttributeRepositoryInterface $attributeRepository,
@@ -41,7 +42,7 @@ public function __construct(
4142
}
4243

4344
/**
44-
* {@inheritdoc}
45+
* @inheritdoc
4546
*/
4647
public function getType($attributeCode, $entityType)
4748
{
@@ -63,7 +64,7 @@ public function getType($attributeCode, $entityType)
6364
}
6465

6566
/**
66-
* {@inheritDoc}
67+
* @inheritDoc
6768
*/
6869
public function getAllServiceDataInterfaces()
6970
{

0 commit comments

Comments
 (0)