Magento Coding Standard (PHPCS) report for brocode/module-image-optimizer-webp ============================================================================== Package version: 1.0.2 | Magento: 2.4.9 | Tested: 2026-06-07 19 warnings in 2 files Model/Converter/WebpImageConverter.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) 17:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 40:5 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 40:5 warning Visibility must be declared on method "doConvert" (Squiz.Scope.MethodScope.Missing) 43:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 47:22 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 49:22 warning The use of function imagecreatefromstring() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 50:13 warning The use of function imagepalettetotruecolor() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 52:26 warning The use of function imagewebp() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 57:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 64:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 69:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 77: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)