Skip to content

Commit 635971f

Browse files
committed
Fixed static test
1 parent 165096c commit 635971f

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

app/code/Magento/MediaGalleryRenditions/Plugin/RemoveRenditions.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
namespace Magento\MediaGalleryRenditions\Plugin;
99

10+
use Magento\Catalog\Helper\Data as CatalogHelper;
1011
use Magento\Framework\App\Filesystem\DirectoryList;
1112
use Magento\Framework\Filesystem;
1213
use Magento\MediaGalleryApi\Api\DeleteAssetsByPathsInterface;
@@ -18,6 +19,11 @@
1819
*/
1920
class RemoveRenditions
2021
{
22+
/**
23+
* @var CatalogHelper
24+
*/
25+
private $catalogHelper;
26+
2127
/**
2228
* @var GetRenditionPathInterface
2329
*/
@@ -39,10 +45,12 @@ class RemoveRenditions
3945
* @param LoggerInterface $log
4046
*/
4147
public function __construct(
48+
CatalogHelper $catalogHelper,
4249
GetRenditionPathInterface $getRenditionPath,
4350
Filesystem $filesystem,
4451
LoggerInterface $log
4552
) {
53+
$this->catalogHelper = $catalogHelper;
4654
$this->getRenditionPath = $getRenditionPath;
4755
$this->filesystem = $filesystem;
4856
$this->log = $log;
@@ -52,7 +60,7 @@ public function __construct(
5260
* Remove renditions when assets are removed
5361
*
5462
* @param DeleteAssetsByPathsInterface $deleteAssetsByPaths
55-
* @param null $result
63+
* @param void $result
5664
* @param array $paths
5765
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5866
*/

0 commit comments

Comments
 (0)