Magento Coding Standard (PHPCS) report for outeredge/magento-structured-data-module =================================================================================== Package version: 6.0.1 | Magento: 2.4.9 | Tested: 2026-08-06 2 errors, 160 warnings in 22 files Plugin/Theme/Block/Html/BreadcrumbsPlugin.php 16:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 31:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 37:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 61:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Plugin/StripReviewSummary.php 9:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:11 warning Expected 1 space after CATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) Plugin/EscapeStripTags.php 9:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 12:73 warning No space found after comma in argument list (Generic.Functions.FunctionCallArgumentSpacing.NoSpaceAfterComma) 16:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Plugin/Cache/BulkUpFlushStructuredCache.php 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 26:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) 32:5 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) Plugin/Cache/FlushStructuredDataCache.php 11:13 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 21:13 warning Expected "foreach (...) {\n"; found "foreach(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 21:13 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 25:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) Helper/Config.php 10:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Type/Product.php 76:8 warning $escaper, parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 77:8 warning $scopeConfig parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 78:8 warning $storeManager parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 79:8 warning $productFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 80:8 warning $reviewSummaryFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 81:8 warning $ratingOptionFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 82:8 warning $reviewCollectionFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 83:8 warning $moduleManager parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 85:8 warning $imageHelper parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 87:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 87:2 warning Line indented incorrectly; expected 4 spaces, found 1 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 87:9 warning @param is not found for one or more params in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 87:9 warning $_escaper parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:9 warning $_scopeConfig parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:9 warning $_storeManager parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:9 warning $_productFactory parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:9 warning $_stockState parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:9 warning $_reviewSummaryFactory parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:9 warning $_ratingOptionVoteFactory parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:9 warning $_reviewCollectionFactory parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:9 warning $_moduleManager parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 88:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 89:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 90:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 91:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 92:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 93:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 94:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 95:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 96:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 97:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 98:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 99:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 100:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 101:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 102:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 103:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 104:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 104:2 warning Line indented incorrectly; expected at least 4 spaces, found 1 (Generic.WhiteSpace.ScopeIndent.Incorrect) 105:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 105:2 warning Line indented incorrectly; expected 4 spaces, found 1 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 107:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 130:9 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found) 134:9 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 232:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 254:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 272:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 273:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 275:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 276:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 306:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 307:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 309:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 310:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 317:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 341:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 375:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 391:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 414:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 424:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 434:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 444:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 452:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 459:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 469:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 479:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 497:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) 507:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 536:13 warning Missing @param for argument in method annotation (Magento2.Annotation.MethodArguments.ParamMissing) 576:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 582:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 595:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 606:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 621:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 629:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 642:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 650:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 656:57 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 662:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 696:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 704:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 716:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 726:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 731:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 736:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 764:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 771:79 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 846:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 853:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 866:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 872:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 884:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Model/Config/Backend/RelatedPage.php 16:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 18:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 40:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Config/Source/ReturnMethod.php 9:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Api/OffersRepository.php 13:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Cache/Type/StructuredDataCache.php 10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 12:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 16: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) 22:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Observer/FlushStructuredDataCache.php 14:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 20:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 25:140 warning Line exceeds 120 characters; contains 140 characters (Generic.Files.LineLength.TooLong) rector.php 30:1 warning Function closing brace must go on the next line following the body; found 1 blank lines before brace (PSR2.Methods.FunctionClosingBrace.SpacingBeforeClose) registration.php 3:18 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 9:2 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) view/frontend/templates/html/breadcrumbs.phtml 6:41 warning Using escapeHtmlAttr on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) view/frontend/templates/jsonld/product-offers.phtml 41:1 warning Line indented incorrectly; expected 4 spaces, found 0 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) view/frontend/templates/jsonld/cms.phtml 28:14 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/frontend/templates/jsonld/organization.phtml 69:22 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/frontend/templates/jsonld/product-reviewsio.phtml 5:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 5:15 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 5:15 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 5:29 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 5:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 7:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 10:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 14:9 warning Line indented incorrectly; expected 4 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 16:9 warning Line indented incorrectly; expected 4 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 18:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 20:5 warning Line indented incorrectly; expected 0 spaces, found 4 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 24:34 warning Using escapeQuote on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 25:34 warning Using escapeQuote on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 25:64 warning The use of helpers in templates is discouraged. Use ViewModel instead. (Magento2.Templates.ThisInTemplate.FoundHelper) 25:64 warning The use of $this in templates is deprecated. Use $block instead. (Magento2.Templates.ThisInTemplate.FoundThis) 25:78 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 25:182 warning Line exceeds 120 characters; contains 182 characters (Generic.Files.LineLength.TooLong) 26:1 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) Api/OffersRepositoryInterface.php 7:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 8:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 12:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Block/Adminhtml/Form/Field/RelatedPage.php 9:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Block/Category.php 15:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 15:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) 17:25 warning The closing parenthesis of a multi-line function declaration must be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine) 18: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) 44:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 58:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 71:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock)