Skip to content

Commit 5bb3448

Browse files
committed
PR-155-For-2 4-develop
1 parent 3cddeba commit 5bb3448

File tree

8 files changed

+89
-697
lines changed

8 files changed

+89
-697
lines changed

app/code/Magento/Catalog/Helper/Image.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,10 @@
1313
use Magento\Framework\View\Element\Block\ArgumentInterface;
1414

1515
/**
16-
* Catalog image helper.
16+
* Catalog image helper
1717
*
1818
* @api
1919
* @SuppressWarnings(PHPMD.TooManyFields)
20-
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2120
* @since 100.0.2
2221
*/
2322
class Image extends AbstractHelper implements ArgumentInterface
@@ -164,7 +163,8 @@ public function __construct(
164163
$this->_assetRepo = $assetRepo;
165164
$this->viewConfig = $viewConfig;
166165
$this->viewAssetPlaceholderFactory = $placeholderFactory
167-
?: ObjectManager::getInstance()->get(PlaceholderFactory::class);
166+
?: ObjectManager::getInstance()
167+
->get(PlaceholderFactory::class);
168168
$this->mediaConfig = $mediaConfig ?: ObjectManager::getInstance()->get(CatalogMediaConfig::class);
169169
}
170170

app/code/Magento/Catalog/Model/Config/Source/Web/CatalogMediaUrlFormat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public function toOptionArray()
2424
'value' => CatalogMediaConfig::IMAGE_OPTIMIZATION_PARAMETERS,
2525
'label' => __('Image optimization based on query parameters')
2626
],
27-
['value' => CatalogMediaConfig::HASH, 'label' => __('Unique hash per image variant (Legacy mode)')]
27+
['value' => CatalogMediaConfig::HASH, 'label' => __('Legacy mode (unique hash per image variant)')]
2828
];
2929
}
3030
}

app/code/Magento/Catalog/Test/Unit/Model/Config/CatalogClone/Media/ImageTest.php

Lines changed: 0 additions & 153 deletions
This file was deleted.

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,7 @@ protected function configure()
8686
$this->setName('catalog:images:resize')
8787
->setDescription(
8888
'Creates resized product images ' .
89-
'(Not relevant when image resizing is offloaded from Magento. ' .
90-
'See https://docs.magento.com/m2/ee/user_guide/configuration/general/web.html#url-options )'
89+
'(Deprecated: see https://docs.magento.com/m2/ee/user_guide/configuration/general/web.html#url-options'
9190
)
9291
->setDefinition($this->getOptionsList());
9392
}

0 commit comments

Comments
 (0)