mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 19:37:12 +00:00
Upgraded to PHP-CS-Fixer v3
This commit is contained in:
@@ -58,12 +58,12 @@ class FilesService extends BaseService
|
||||
$fileNameWithoutExtension = pathinfo($filePath, PATHINFO_FILENAME);
|
||||
$fileExtension = pathinfo($filePath, PATHINFO_EXTENSION);
|
||||
|
||||
if (getimagesize($filePath) !== false) // Then the file is an image
|
||||
{
|
||||
if (getimagesize($filePath) !== false)
|
||||
{ // Then the file is an image
|
||||
// Also delete all corresponding "__downscaledto" files when deleting an image
|
||||
$groupFolderPath = $this->StoragePath . '/' . $group;
|
||||
$files = scandir($groupFolderPath);
|
||||
foreach($files as $file)
|
||||
foreach ($files as $file)
|
||||
{
|
||||
if (string_starts_with($file, $fileNameWithoutExtension . '__downscaledto'))
|
||||
{
|
||||
|
Reference in New Issue
Block a user