Magento Coding Standard (PHPCS) report for brocode/module-image-optimizer-avif ============================================================================== Package version: 1.0.2 | Magento: 2.4.9 | Tested: 2026-06-07 18 warnings in 2 files Model/Converter/AvifImageConverter.php 12:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 14:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 16:34 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 26:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 39:5 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 39:5 warning Visibility must be declared on method "doConvert" (Squiz.Scope.MethodScope.Missing) 42:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 46:22 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 48:22 warning The use of function imagecreatefromstring() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 49:13 warning The use of function imagepalettetotruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 51:26 warning The use of function imageavif() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 56:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 63:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 68:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 76:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Api/Constants.php 7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 8:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound)