From 40bf98cd7028b515a77f6fe24442ac377704aaa6 Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Mon, 29 Dec 2014 21:15:46 +0300 Subject: [PATCH] =?UTF-8?q?"=D0=9D=D0=B0=D1=81=D0=B8=D0=BB=D1=8C=D0=BD?= =?UTF-8?q?=D0=BE=D0=B5=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B5?= =?UTF-8?q?=20=D0=B2=D0=B0=D1=80=D0=B8=D0=B0=D0=BD=D1=82=D0=B0"=20(fix1)?= =?UTF-8?q?=20MIRSPORTA-591=20=D0=9D=D0=B5=D0=BF=D1=80=D0=B0=D0=B2=D0=B8?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D1=80=D0=B5=D1=81=D0=B0=D0=B9?= =?UTF-8?q?=D0=B7=D0=B8=D0=BD=D0=B3=20=D1=84=D0=BE=D1=82=D0=BE=20=D0=B8?= =?UTF-8?q?=D0=B7=20=D1=84=D0=BE=D1=82=D0=BE=D0=B3=D0=B0=D0=BB=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- File.php | 13 ++++++++----- Image.php | 16 +++++++++------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/File.php b/File.php index c661b69..7d994d1 100644 --- a/File.php +++ b/File.php @@ -75,11 +75,14 @@ abstract class File return $instance; } - /** - * @param $size string - * @param $force_create bool - * @return ImageVariant - */ + /** + * @param $size + * @param bool $force_create + * @param bool $important_create + * + * @return ImageVariant + * @throws \ErrorException + */ public function getImageVariant($size, $force_create = false, $important_create = false) { /** diff --git a/Image.php b/Image.php index 4f9693b..0ff0073 100644 --- a/Image.php +++ b/Image.php @@ -75,13 +75,15 @@ abstract class Image extends File return static::$max_height; } - /** - * @param $size - * @param $force_create - * @return ImageVariant - */ - public function getVariant($size, $force_create = false) + /** + * @param $size + * @param bool $force_create + * @param bool $important_create + * + * @return ImageVariant + */ + public function getVariant($size, $force_create = false, $important_create = false) { - return parent::getImageVariant($size, $force_create); + return parent::getImageVariant($size, $force_create, $important_create); } } \ No newline at end of file