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 13b8475 commit ca5e80b
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 ca5e80b

Please sign in to comment.