Skip to content

Commit

Permalink
Missing variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Grandt committed Nov 2, 2015
1 parent dc84d12 commit e71e389
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
1 change: 1 addition & 0 deletions src/PHPePub/Core/EPub.php
Original file line number Diff line number Diff line change
Expand Up @@ -2806,6 +2806,7 @@ function DANGER_getZip() {
* @return float
*/
public function getImageScale($width, $height) {
$ratio = 1;
if ($width > $this->maxImageWidth) {
$ratio = $this->maxImageWidth / $width;
}
Expand Down
6 changes: 3 additions & 3 deletions tests/composer.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit e71e389

Please sign in to comment.