From 8d90bb1f55123b0ad7e4f290ca8cbca0f5239db2 Mon Sep 17 00:00:00 2001 From: Scrutinizer Auto-Fixer Date: Sun, 5 Nov 2017 18:06:04 +0000 Subject: [PATCH] Scrutinizer Auto-Fixes This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com --- Controller.php | 2 +- Models/UploadFile.php | 4 ++-- img/module_teaser_small.png | Bin 49511 -> 49509 bytes 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Controller.php b/Controller.php index 9714783..d133606 100644 --- a/Controller.php +++ b/Controller.php @@ -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); diff --git a/Models/UploadFile.php b/Models/UploadFile.php index 86c14cf..3967df6 100644 --- a/Models/UploadFile.php +++ b/Models/UploadFile.php @@ -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); diff --git a/img/module_teaser_small.png b/img/module_teaser_small.png index f56e6ff1a61ca4a08413260cacbe116605782baa..9147e4f3cb791a1b3d45cfd9738e0aa5a3231b31 100644 GIT binary patch delta 20 ccmaFf#Qe00nWZzp&wV57#>tzvPu`#l09@7y9RL6T delta 23 fcmaFb#QeO8nYA;(&z*N8%f`u!yqmX9-k=KrZjT8z