Skip to content

Commit

Permalink
Fix static tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmalevanec committed Mar 1, 2019
1 parent c7930eb commit 7190983
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions app/code/Magento/MediaStorage/Service/ImageResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
use Magento\Framework\App\Filesystem\DirectoryList;

/**
* Image resize service.
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class ImageResize
Expand Down Expand Up @@ -123,7 +125,8 @@ public function __construct(
}

/**
* Create resized images of different sizes from an original image
* Create resized images of different sizes from an original image.
*
* @param string $originalImageName
* @throws NotFoundException
*/
Expand All @@ -141,7 +144,8 @@ public function resizeFromImageName(string $originalImageName)
}

/**
* Create resized images of different sizes from themes
* Create resized images of different sizes from themes.
*
* @param array|null $themes
* @return \Generator
* @throws NotFoundException
Expand Down Expand Up @@ -169,7 +173,8 @@ public function resizeFromThemes(array $themes = null): \Generator
}

/**
* Search the current theme
* Search the current theme.
*
* @return array
*/
private function getThemesInUse(): array
Expand All @@ -187,7 +192,8 @@ private function getThemesInUse(): array
}

/**
* Get view images data from themes
* Get view images data from themes.
*
* @param array $themes
* @return array
*/
Expand All @@ -211,7 +217,8 @@ private function getViewImages(array $themes): array
}

/**
* Get unique image index
* Get unique image index.
*
* @param array $imageData
* @return string
*/
Expand All @@ -223,7 +230,8 @@ private function getUniqueImageIndex(array $imageData): string
}

/**
* Make image
* Make image.
*
* @param string $originalImagePath
* @param array $imageParams
* @return Image
Expand All @@ -241,7 +249,8 @@ private function makeImage(string $originalImagePath, array $imageParams): Image
}

/**
* Resize image
* Resize image.
*
* @param array $viewImage
* @param string $originalImagePath
* @param string $originalImageName
Expand Down

0 comments on commit 7190983

Please sign in to comment.