Magento Coding Standard (PHPCS) report for magepow/recentlyviewed ================================================================= Package version: 1.0.1 | Magento: 2.4.9 | Tested: 2026-05-26 7 errors, 37 warnings in 4 files Helper/Data.php 12:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 17:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 19:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 22: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) 27:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 27:35 warning Incorrect spacing between argument "$cfg" and equals sign; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals) 27:35 warning Incorrect spacing between default value and equals sign for argument "$cfg"; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals) 29:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 29:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 29:45 warning Space after opening parenthesis of function call prohibited (PSR2.Methods.FunctionCallSignature.SpaceAfterOpenBracket) 29:110 warning Expected 0 spaces before closing parenthesis; 1 found (PSR2.Methods.FunctionCallSignature.SpaceBeforeCloseBracket) 33:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 33:41 warning Incorrect spacing between argument "$cfg" and equals sign; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals) 33:41 warning Incorrect spacing between default value and equals sign for argument "$cfg"; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals) 33:52 warning Incorrect spacing between argument "$value" and equals sign; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceBeforeEquals) 33:52 warning Incorrect spacing between default value and equals sign for argument "$value"; expected 1 but found 0 (Squiz.Functions.FunctionDeclarationArgumentSpacing.SpaceAfterEquals) 36:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 36:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 36:12 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 36:18 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 40:13 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 40:13 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 40:16 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 40:36 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 40:37 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 41:17 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 41:17 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 41:20 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 41:33 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 43:17 warning Expected 1 space after closing brace; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace) 43:18 warning Expected "} else {\n"; found "}else {\n" (PEAR.ControlStructures.ControlSignature.Found) 52:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) view/frontend/templates/default/jsWindow.phtml 15:11 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 15:11 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 15:25 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 19:36 warning Short echo tag syntax must be used; expected " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) 1:1 error Avoid using self-closing tag with non-void html element - " (Magento2.Html.HtmlSelfClosingTags.HtmlSelfClosingNonVoidTag) view/frontend/web/css/source/_module.less 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar)