Applied PHP-CS-Fixer rules

This commit is contained in:
Bernd Bestel
2020-09-01 21:29:47 +02:00
parent 3da8904cba
commit 836bcc82e5
56 changed files with 150 additions and 467 deletions

View File

@@ -34,22 +34,17 @@ class FilesService extends BaseService
{
$image->resizeToBestFit($bestFitWidth, $bestFitHeight);
}
else
if ($bestFitHeight !== null)
elseif ($bestFitHeight !== null)
{
$image->resizeToHeight($bestFitHeight);
}
else
if ($bestFitWidth !== null)
elseif ($bestFitWidth !== null)
{
$image->resizeToWidth($bestFitWidth);
}
$image->save($filePathDownscaled);
}
}
catch (ImageResizeException $ex)
{
@@ -81,7 +76,5 @@ class FilesService extends BaseService
{
mkdir($this->StoragePath);
}
}
}