Scrutinizer Auto-Fixes

This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
This commit is contained in:
Scrutinizer Auto-Fixer 2017-11-05 18:06:04 +00:00
parent 430863cdd0
commit 8d90bb1f55
3 changed files with 3 additions and 3 deletions

View File

@ -231,7 +231,7 @@ class Controller extends ModuleAbstract implements WebInterface
$mediaCreated = [];
if (!empty($files)) {
$upload = new UploadFile();
$upload = new UploadFile();
$upload->setOutputDir(self::createMediaPath($basePath));
$status = $upload->upload($files);

View File

@ -202,7 +202,7 @@ class UploadFile
} elseif ($extension === 'jpg' || $extension === 'jpeg') {
$img = imagecreatefromjpeg($path);
} else {
$img = imagecreatefromgif ($path);
$img = imagecreatefromgif($path);
}
imageinterlace($img, (int) $this->interlaced);
@ -212,7 +212,7 @@ class UploadFile
} elseif ($extension === 'jpg' || $extension === 'jpeg') {
imagejpeg($img, $path);
} else {
imagegif ($img, $path);
imagegif($img, $path);
}
imagedestroy($img);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 48 KiB