Magento Coding Standard (PHPCS) report for relevanz/retargeting-magento2-plugin =============================================================================== Package version: 1.1.0 | Magento: 2.4.9 | Tested: 2026-06-01 9 errors, 180 warnings in 20 files Helper/Data.php 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) 35: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) 37:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 38:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 40:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 42:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 44:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 46:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 48:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 50:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 52:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 54:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 56:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 77:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 77:12 warning Expected "function abc(...)"; found "function abc (...)" (Squiz.Functions.FunctionDeclaration.Found) 77:33 warning Expected 0 spaces before opening parenthesis; 1 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeOpenParen) 82:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 87:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 91:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 95:33 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 95:88 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 95:151 warning Line exceeds 120 characters; contains 151 characters (Generic.Files.LineLength.TooLong) 102:178 warning Line exceeds 120 characters; contains 178 characters (Generic.Files.LineLength.TooLong) 125:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 127:15 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 134:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 134:13 warning Expected "function abc(...)"; found "function abc (...)" (Squiz.Functions.FunctionDeclaration.Found) 134:37 warning Expected 0 spaces before opening parenthesis; 1 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeOpenParen) 139:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 141:15 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 145:20 error The use of function md5() is forbidden; use improved hash functions (SHA-256, SHA-512 etc.)() instead (Magento2.Security.InsecureFunction.FoundWithAlternative) 150:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 150:12 warning Expected "function abc(...)"; found "function abc (...)" (Squiz.Functions.FunctionDeclaration.Found) 150:31 warning Expected 0 spaces before opening parenthesis; 1 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeOpenParen) 155:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 160:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 165:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 165:12 warning Expected "function abc(...)"; found "function abc (...)" (Squiz.Functions.FunctionDeclaration.Found) 165:50 warning Expected 0 spaces before opening parenthesis; 1 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeOpenParen) 187:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 192:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 192:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Model/Products.php 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) 20:12 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 20:12 warning Scope modifier not specified for member variable "$pageLimit" (Squiz.Scope.MemberVarScope.Missing) 20:12 warning Visibility must be declared on property "$pageLimit" (PSR2.Classes.PropertyDeclaration.ScopeMissing) 22:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 24:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 47:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 48:148 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong) 58:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 71:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 71:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Model/Config/Backend/ApiKey.php 17:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 19:249 warning Line exceeds 120 characters; contains 249 characters (Generic.Files.LineLength.TooLong) 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 30:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) etc/frontend/routes.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) etc/module.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) registration.php 11:1 warning Multi-line function call not indented correctly; expected 4 spaces but found 8 (PSR2.Methods.FunctionCallSignature.Indent) 12:1 warning Multi-line function call not indented correctly; expected 4 spaces but found 8 (PSR2.Methods.FunctionCallSignature.Indent) 13:1 warning Multi-line function call not indented correctly; expected 4 spaces but found 8 (PSR2.Methods.FunctionCallSignature.Indent) 14:1 warning Multi-line function call not indented correctly; expected 0 spaces but found 4 (PSR2.Methods.FunctionCallSignature.Indent) Controller/Adminhtml/Statistics/Index.php 25:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 31:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 42:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 42:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Controller/Adminhtml/Statistics/KeyPost.php 24:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 26:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 28:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 30:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 42:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 53:19 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 54:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 54:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 54:20 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 60:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Controller/Adminhtml/Statistics.php 28:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 41:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Controller/Products/Index.php 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) 31:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 33:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 35:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 37:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 37:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 45:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 50:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 50:13 warning Expected "function abc(...)"; found "function abc (...)" (Squiz.Functions.FunctionDeclaration.Found) 50:38 warning Expected 0 spaces before opening parenthesis; 1 found (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeOpenParen) 68:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 73:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 100:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 125:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Controller/ShopInfo/Index.php 12:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 30:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) view/frontend/templates/init.phtml 1:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 2:5 warning Short echo tag syntax must be used; expected "