Skip to content

Commit 3f025c8

Browse files
committed
ENGCOM-3502: Static test fix.
1 parent 2884972 commit 3f025c8

File tree

9 files changed

+39
-22
lines changed

9 files changed

+39
-22
lines changed

app/code/Magento/Catalog/Model/ResourceModel/Collection/AbstractCollection.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
/**
1111
* Catalog EAV collection resource abstract model
12+
*
1213
* Implement using different stores for retrieve attribute values
1314
*
1415
* @api
@@ -210,10 +211,7 @@ protected function _getLoadAttributesSelect($table, $attributeIds = [])
210211
}
211212

212213
/**
213-
* @param \Magento\Framework\DB\Select $select
214-
* @param string $table
215-
* @param string $type
216-
* @return \Magento\Framework\DB\Select
214+
* @inheritdoc
217215
*/
218216
protected function _addLoadAttributesSelectValues($select, $table, $type)
219217
{

app/code/Magento/Catalog/Model/ResourceModel/Product/Compare/Item/Collection.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,7 @@ public function clear()
416416

417417
/**
418418
* Retrieve is flat enabled flag
419+
*
419420
* Overwrite disable flat for compared item if required EAV resource
420421
*
421422
* @return bool

app/code/Magento/GroupedProduct/Model/ResourceModel/Product/Type/Grouped/AssociatedProductsCollection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
use Magento\Framework\Model\ResourceModel\ResourceModelPoolInterface;
1313

1414
/**
15+
* Associated products collection.
16+
*
1517
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1618
*/
1719
class AssociatedProductsCollection extends \Magento\Catalog\Model\ResourceModel\Product\Link\Product\Collection

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
* See COPYING.txt for license details.
55
*/
66

7-
/**
8-
* Customers Report collection
9-
*/
107
namespace Magento\Reports\Model\ResourceModel\Customer;
118

129
use Magento\Framework\Model\ResourceModel\ResourceModelPoolInterface;
1310

1411
/**
12+
* Customers Report collection.
13+
*
1514
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
1615
* @api
1716
* @since 100.0.2

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

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66

77
/**
8-
* Products Report collection
9-
*
108
* @author Magento Core Team <[email protected]>
119
*/
1210
namespace Magento\Reports\Model\ResourceModel\Product;
@@ -19,6 +17,8 @@
1917
use Magento\Framework\Model\ResourceModel\ResourceModelPoolInterface;
2018

2119
/**
20+
* Products Report collection.
21+
*
2222
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2323
* @api
2424
* @since 100.0.2
@@ -174,7 +174,8 @@ public function __construct(
174174
}
175175

176176
/**
177-
* Set Type for COUNT SQL Select
177+
* Set Type for COUNT SQL Select.
178+
*
178179
* @codeCoverageIgnore
179180
*
180181
* @param int $type
@@ -187,7 +188,8 @@ public function setSelectCountSqlType($type)
187188
}
188189

189190
/**
190-
* Set product entity id
191+
* Set product entity id.
192+
*
191193
* @codeCoverageIgnore
192194
*
193195
* @param string $entityId
@@ -200,7 +202,8 @@ public function setProductEntityId($entityId)
200202
}
201203

202204
/**
203-
* Get product entity id
205+
* Get product entity id.
206+
*
204207
* @codeCoverageIgnore
205208
*
206209
* @return int
@@ -211,7 +214,8 @@ public function getProductEntityId()
211214
}
212215

213216
/**
214-
* Set product entity table name
217+
* Set product entity table name.
218+
*
215219
* @codeCoverageIgnore
216220
*
217221
* @param string $value
@@ -224,7 +228,8 @@ public function setProductEntityTableName($value)
224228
}
225229

226230
/**
227-
* Get product entity table name
231+
* Get product entity table name.
232+
*
228233
* @codeCoverageIgnore
229234
*
230235
* @return string
@@ -235,7 +240,8 @@ public function getProductEntityTableName()
235240
}
236241

237242
/**
238-
* Get product attribute set id
243+
* Get product attribute set id.
244+
*
239245
* @codeCoverageIgnore
240246
*
241247
* @return int
@@ -246,7 +252,8 @@ public function getProductAttributeSetId()
246252
}
247253

248254
/**
249-
* Set product attribute set id
255+
* Set product attribute set id.
256+
*
250257
* @codeCoverageIgnore
251258
*
252259
* @param int $value

app/code/Magento/Reports/Model/ResourceModel/Product/Index/Collection/AbstractCollection.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66

77
/**
8-
* Reports Product Index Abstract Product Resource Collection
9-
*
108
* @author Magento Core Team <[email protected]>
119
*/
1210
namespace Magento\Reports\Model\ResourceModel\Product\Index\Collection;
@@ -16,6 +14,8 @@
1614
use Magento\Framework\Model\ResourceModel\ResourceModelPoolInterface;
1715

1816
/**
17+
* Reports Product Index Abstract Product Resource Collection.
18+
*
1919
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2020
* @api
2121
* @since 100.0.2
@@ -194,7 +194,8 @@ protected function _getWhereCondition()
194194
}
195195

196196
/**
197-
* Set customer id, that will be used in 'whereCondition'
197+
* Set customer id, that will be used in 'whereCondition'.
198+
*
198199
* @codeCoverageIgnore
199200
*
200201
* @param int $id

app/code/Magento/Reports/Model/ResourceModel/Product/Lowstock/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@
55
*/
66

77
/**
8-
* Product Low Stock Report Collection
9-
*
108
* @author Magento Core Team <[email protected]>
119
*/
1210
namespace Magento\Reports\Model\ResourceModel\Product\Lowstock;
@@ -17,6 +15,8 @@
1715
use Magento\Framework\Model\ResourceModel\ResourceModelPoolInterface;
1816

1917
/**
18+
* Product Low Stock Report Collection.
19+
*
2020
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2121
* @api
2222
* @since 100.0.2

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,17 @@ class ResourceModelPool implements ResourceModelPoolInterface
1818
*/
1919
private $objectManager;
2020

21+
/**
22+
* @param ObjectManagerInterface $objectManager
23+
*/
2124
public function __construct(ObjectManagerInterface $objectManager)
2225
{
2326
$this->objectManager = $objectManager;
2427
}
2528

29+
/**
30+
* @inheritdoc
31+
*/
2632
public function get(string $resourceClassName): AbstractResource
2733
{
2834
return $this->objectManager->get($resourceClassName);

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@
1414
interface ResourceModelPoolInterface
1515
{
1616
/**
17-
* Return instance for given class name from pool
17+
* Return instance for given class name from pool.
18+
*
19+
* @param string $resourceClassName
20+
* @return AbstractResource
1821
*/
1922
public function get(string $resourceClassName): AbstractResource;
2023
}

0 commit comments

Comments
 (0)