Magento Coding Standard (PHPCS) report for develodesign/magento-2-module-categoryfaqextension ============================================================================================= Package version: 1.1 | Magento: 2.4.9 | Tested: 2026-05-26 8 errors, 50 warnings in 7 files ViewModel/Faq.php 9:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 14:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 18:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 20:99 warning Opening brace should be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.BraceOnSameLine) 24:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 24:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 24:66 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 28:62 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) 41:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) Model/Category/Attribute/Source/FaqCategory.php 16:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 7 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 17:5 warning There must be a single space between the closing parenthesis/return type and the opening brace of a multi-line function declaration; found 0 spaces (Squiz.Functions.MultiLineFunctionDeclaration.SpaceBeforeOpenBrace) 17:7 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 20:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 40:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Setup/Patch/Data/AddFaqCategoryCategoryAttribute.php 44:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 59:29 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 73:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 84:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 92:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 100:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) etc/module.xml 3:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 4:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 5:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 6:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 7:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 8:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) registration.php 8:103 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) view/frontend/templates/faq.phtml 12:23 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 14:78 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 17:58 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 18:1 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) 19:115 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 19:140 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 19:147 warning Line exceeds 120 characters; contains 166 characters (Generic.Files.LineLength.TooLong) 21:70 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 25:128 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 25:167 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 25:213 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 25:220 warning Line exceeds 120 characters; contains 246 characters (Generic.Files.LineLength.TooLong) 27:120 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) 27:134 warning Line exceeds 120 characters; contains 140 characters (Generic.Files.LineLength.TooLong) view/adminhtml/ui_component/category_form.xml 3:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 4:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 5:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 6:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 7:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 8:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 9:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 10:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 11:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 12:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 13:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 14:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 15:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 16:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 17:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 18:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 19:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed)