Skip to content

Commit

Permalink
Fixes typo in private getUniqueImageIndex() method
Browse files Browse the repository at this point in the history
  • Loading branch information
eduard13 committed Jul 12, 2018
1 parent 6b7a9b3 commit ffdd53d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/MediaStorage/Service/ImageResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ private function getViewImages(array $themes): array
]);
$images = $config->getMediaEntities('Magento_Catalog', ImageHelper::MEDIA_TYPE_CONFIG_NODE);
foreach ($images as $imageId => $imageData) {
$uniqIndex = $this->getUniqImageIndex($imageData);
$uniqIndex = $this->getUniqueImageIndex($imageData);
$imageData['id'] = $imageId;
$viewImages[$uniqIndex] = $imageData;
}
Expand All @@ -211,11 +211,11 @@ private function getViewImages(array $themes): array
}

/**
* Get uniq image index
* Get unique image index
* @param array $imageData
* @return string
*/
private function getUniqImageIndex(array $imageData): string
private function getUniqueImageIndex(array $imageData): string
{
ksort($imageData);
unset($imageData['type']);
Expand Down

0 comments on commit ffdd53d

Please sign in to comment.