Skip to content

Commit ee09259

Browse files
author
Timon de Groot
committed
Fix coding style errors
1 parent 201c8e0 commit ee09259

File tree

3 files changed

+25
-10
lines changed

3 files changed

+25
-10
lines changed

app/code/Magento/Catalog/Test/Unit/Model/ResourceModel/Product/ImageTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
use PHPUnit_Framework_MockObject_MockObject as MockObject;
1717
use Magento\Framework\DB\Query\BatchIteratorInterface;
1818

19+
/**
20+
* Class ImageTest
21+
* @package Magento\Catalog\Test\Unit\Model\ResourceModel\Product
22+
*/
1923
class ImageTest extends \PHPUnit\Framework\TestCase
2024
{
2125
/**

app/code/Magento/MediaStorage/Console/Command/ImagesResizeCommand.php

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
use Symfony\Component\Console\Input\InputInterface;
1717
use Symfony\Component\Console\Output\OutputInterface;
1818

19+
/**
20+
* Resizes product images according to theme view definitions.
21+
*
22+
* @package Magento\MediaStorage\Console\Command
23+
*/
1924
class ImagesResizeCommand extends \Symfony\Component\Console\Command\Command
2025
{
2126
/**
@@ -53,7 +58,7 @@ public function __construct(
5358
}
5459

5560
/**
56-
* {@inheritdoc}
61+
* @inheritdoc
5762
*/
5863
protected function configure()
5964
{
@@ -62,7 +67,9 @@ protected function configure()
6267
}
6368

6469
/**
65-
* {@inheritdoc}
70+
* @inheritdoc
71+
* @param InputInterface $input
72+
* @param OutputInterface $output
6673
*/
6774
protected function execute(InputInterface $input, OutputInterface $output)
6875
{
@@ -71,10 +78,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
7178
$generator = $this->resize->resizeFromThemes();
7279

7380
/** @var ProgressBar $progress */
74-
$progress = $this->progressBarFactory->create([
75-
'output' => $output,
76-
'max' => $generator->current()
77-
]);
81+
$progress = $this->progressBarFactory->create(
82+
[
83+
'output' => $output,
84+
'max' => $generator->current()
85+
]
86+
);
7887
$progress->setFormat(
7988
"%current%/%max% [%bar%] %percent:3s%% %elapsed% %memory:6s% \t| <info>%message%</info>"
8089
);

app/code/Magento/MediaStorage/Service/ImageResize.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,12 @@ private function getViewImages(array $themes): array
202202
$viewImages = [];
203203
/** @var \Magento\Theme\Model\Theme $theme */
204204
foreach ($themes as $theme) {
205-
$config = $this->viewConfig->getViewConfig([
206-
'area' => Area::AREA_FRONTEND,
207-
'themeModel' => $theme,
208-
]);
205+
$config = $this->viewConfig->getViewConfig(
206+
[
207+
'area' => Area::AREA_FRONTEND,
208+
'themeModel' => $theme,
209+
]
210+
);
209211
$images = $config->getMediaEntities('Magento_Catalog', ImageHelper::MEDIA_TYPE_CONFIG_NODE);
210212
foreach ($images as $imageId => $imageData) {
211213
$uniqIndex = $this->getUniqueImageIndex($imageData);

0 commit comments

Comments
 (0)