Skip to content

Commit

Permalink
Implement PR feedback #905
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rainville committed Jan 29, 2019
1 parent 4e9b0e6 commit 4535dbe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion code/Helper/ImageThumbnailHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@ class ImageThumbnailHelper
private $maxImageFileSize;

/**
* @param mixed $maxImageSize Maximum file size for which thumbnails will be generated
* @param mixed $maxImageSize Maximum file size for which thumbnails will be generated. Set to `0` to disable the
* limit.
*/
public function __construct($maxImageFileSize = '9M')
{
$this->setMaxImageFileSize($maxImageFileSize);
}

/**
* Get the maximum file size for which thumbnails will be generated. Set to `0` to disable the limit.
* @return int
*/
public function getMaxImageFileSize()
Expand All @@ -33,6 +35,7 @@ public function getMaxImageFileSize()
}

/**
* Set the maximum file size for which thumbnails will be generated. Set to `0` to disable the limit.
* @param mixed $size
* @return $this
*/
Expand Down

0 comments on commit 4535dbe

Please sign in to comment.