From e71e389781151db67b578069de2e8485e47344d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Asbj=C3=B8rn=20Grandt?= Date: Mon, 2 Nov 2015 12:09:23 +0100 Subject: [PATCH] Missing variable --- composer.json | 2 +- src/PHPePub/Core/EPub.php | 1 + tests/composer.json | 6 +++--- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 7a44526..6b41404 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,7 @@ ], "require": { "phpzip/phpzip": ">=2.0.7", - "grandt/phpresizegif": ">=1.0.3", + "grandt/phpresizegif": ">=1.0.4", "grandt/relativepath": ">=1.0.1", "php": ">=5.3.0" }, diff --git a/src/PHPePub/Core/EPub.php b/src/PHPePub/Core/EPub.php index b0cb405..71994e4 100644 --- a/src/PHPePub/Core/EPub.php +++ b/src/PHPePub/Core/EPub.php @@ -2806,6 +2806,7 @@ function DANGER_getZip() { * @return float */ public function getImageScale($width, $height) { + $ratio = 1; if ($width > $this->maxImageWidth) { $ratio = $this->maxImageWidth / $width; } diff --git a/tests/composer.json b/tests/composer.json index 95e6861..65e16b8 100644 --- a/tests/composer.json +++ b/tests/composer.json @@ -1,7 +1,7 @@ { - "require": { - "phpzip/phpzip": ">=2.0.6", - "php": ">=5.3.0" + "require": { + "php": ">=5.3.0", + "phpzip/phpzip": ">=2.0.7" }, "autoload": { "psr-4": {