fix(continuous-integration): correction point phpstan de level 1
All checks were successful
Cadoles/nineskeletor/pipeline/pr-master This commit looks good

This commit is contained in:
2022-09-23 15:34:07 +02:00
parent 86b11372e7
commit 5f3cc51f5c
10 changed files with 32 additions and 11 deletions

View File

@ -43,6 +43,9 @@ class CropController extends AbstractController
// Récupérer les tailles de l'image
$width = $this->getWidth($large_image_location);
$height = $this->getHeight($large_image_location);
$max_height=null;
$max_width=null;
$ratio=null;
// Définir le pourcentage de réduction de l'image
switch ($type) {
@ -146,6 +149,8 @@ class CropController extends AbstractController
$newImageWidth = ceil($width * $scale);
$newImageHeight = ceil($height * $scale);
$newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);
$source=null;
switch($imageType) {
case "image/gif":
$source=imagecreatefromgif($image);
@ -192,7 +197,7 @@ class CropController extends AbstractController
$newImageWidth=900;
$newImageHeight=900;
$newImage = imagecreatetruecolor($newImageWidth,$newImageHeight);
$source=null;
switch($imageType) {
case "image/gif":