Block/Product/ImageFactory.php
Method create
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(Product $product, string $imageId, ?array $attributes = null): ImageBlock
{
$viewImageConfig = $this->presentationConfig->getViewConfig()->getMediaAttributes(
'Magento_Catalog',
ImageHelper::MEDIA_TYPE_CONFIG_NODE,
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
ObjectManagerInterface $objectManager,
ConfigInterface $presentationConfig,
AssetImageFactory $viewAssetImageFactory,
PlaceholderFactory $viewAssetPlaceholderFactory,
ParamsBuilder $imageParamsBuilder