Skip to content

Commit 2869a87

Browse files
MAGETWO-58729: [Generator] Add images to performance profile generator
1 parent dd9e165 commit 2869a87

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

setup/src/Magento/Setup/Fixtures/ImagesFixture.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
* because it can take pretty much time
2929
*
3030
* @see setup/performance-toolkit/profiles/ce/small.xml
31+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
3132
*/
3233
class ImagesFixture extends Fixture
3334
{
@@ -214,6 +215,8 @@ private function checkIfImagesExists()
214215

215216
/**
216217
* Create image file and add it to media gallery table in DB
218+
*
219+
* @return void
217220
*/
218221
private function createImageEntities()
219222
{
@@ -271,6 +274,7 @@ private function generateImageFilesGenerator()
271274
/**
272275
* Assign created images to products according to Y images per each product
273276
*
277+
* @return void
274278
* @throws \Exception
275279
*/
276280
private function assignImagesToProducts()
@@ -473,7 +477,7 @@ private function getImagesCount()
473477
/**
474478
* Get eav attribute id by its code
475479
*
476-
* @param $attributeCode
480+
* @param string $attributeCode
477481
* @return int
478482
* @throws \Magento\Framework\Exception\NoSuchEntityException
479483
*/

setup/src/Magento/Setup/Model/BatchInsert.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ public function __construct(
6262
* when storage size becomes equal to $batchSize
6363
*
6464
* @param array $dataToInsert
65+
* @return void
6566
*/
6667
public function insert(array $dataToInsert)
6768
{
@@ -75,6 +76,8 @@ public function insert(array $dataToInsert)
7576

7677
/**
7778
* Insert all data form $dataStorage to DB and clear $dataStorage
79+
*
80+
* @return void
7881
*/
7982
public function flush()
8083
{

0 commit comments

Comments
 (0)