Magento Coding Standard (PHPCS) report for taurus-media/module-image-cleaner ============================================================================ Package version: 1.0.0 | Magento: 2.4.9 | Tested: 2026-06-01 1 error, 23 warnings in 6 files Model/ResourceModel/UsedImageIndex.php 19:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Model/TrashManager.php 16:28 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 37:14 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 59:29 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 65:21 error Silencing errors is discouraged; found: @rmdir($file... (Generic.PHP.NoSilencedErrors.Discouraged) 65:22 warning The use of function rmdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::deleteDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/ImageScanner.php 20:28 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 21:28 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 41:14 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 175:22 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 183:16 warning The use of function rename() is discouraged; use Magento\Framework\Filesystem\DriverInterface::rename() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/UsedImageIndex.php 20:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 34:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 35:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 111:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) Console/Command/ImageCleanupCommand.php 38:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 39:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 75:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 76:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 80:15 warning Function's nesting level (6) exceeds 5; consider refactoring the function (Generic.Metrics.NestingLevel.TooHigh) 90:157 warning Line exceeds 120 characters; contains 157 characters (Generic.Files.LineLength.TooLong) 136:29 warning The use of function sleep() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Cron/TrashCleanup.php 18:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 27:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong)