Magento Coding Standard (PHPCS) report for magepow/ajaxwishlist =============================================================== Package version: 1.0.2 | Magento: 2.4.9 | Tested: 2026-05-26 18 errors, 152 warnings in 10 files Plugin/Controller/Index/Plugin.php 16:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 68:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 139:64 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 166:1 warning Code must not contain multiple empty lines in a row; found 3 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 169:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 169:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Helper/Data.php 14:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 18:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 11 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 20:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 26:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 26:35 warning Incorrect spacing between argument "$cfg" and equals sign; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals) 26:35 warning Incorrect spacing between default value and equals sign for argument "$cfg"; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals) 28:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 28:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 28:45 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 28:110 warning Expected 0 spaces before closing parenthesis; 1 found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 32:41 warning Incorrect spacing between argument "$cfg" and equals sign; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals) 32:41 warning Incorrect spacing between default value and equals sign for argument "$cfg"; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals) 32:52 warning Incorrect spacing between argument "$value" and equals sign; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals) 32:52 warning Incorrect spacing between default value and equals sign for argument "$value"; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals) 35:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 35:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 35:12 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 35:18 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 39:13 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 39:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 39:16 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 39:36 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 39:37 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 40:17 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 40:17 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 40:20 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 40:33 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 42:17 warning Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 42:18 warning Expected "} else {\n"; found "}else {\n" (PEAR.ControlStructures.ControlSignature.Found) 45:14 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 51:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 53:8 warning Line indented incorrectly; expected at least 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.Incorrect) 56:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 56:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Model/Config/Backend/Image.php 9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 19:6 warning Expected 4 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 20:6 warning Expected 4 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 21:6 warning Expected 4 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 22:6 warning Expected 4 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 23:6 warning Expected 4 spaces before asterisk; 5 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 49:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 50:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 55:19 error Direct use of $_FILES Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 56:24 error Direct use of $_FILES Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 81:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) registration.php 7:2 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) view/frontend/templates/ajaxwishlist.phtml 5:29 warning Short echo tag syntax must be used; expected "