Magento Coding Standard (PHPCS) report for sivaschenko/magento2-clean-media =========================================================================== Package version: 1.1.1 | Magento: 2.4.9 | Tested: 2026-05-27 32 warnings in 2 files Command/CatalogMedia.php 26:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 31:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 36:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 41:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 46:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 51:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 56:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 128:14 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 170:36 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 171:44 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 184:36 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 185:47 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 186:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 234:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 235:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 247:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 248:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 255:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 256:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 263:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 264:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/GetDuplicates.php 10:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 11:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 14:12 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 14:12 warning $paths parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 19:17 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 28:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 35:16 warning The use of function opendir() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 41:37 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 45:17 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 48:21 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)