Magento Coding Standard (PHPCS) report for outeredge/magento-structured-data-module =================================================================================== Package version: 6.3.0 | Magento: 2.4.9 | Tested: 2026-10-13 2 errors, 112 warnings in 15 files Plugin/Theme/Block/Html/BreadcrumbsPlugin.php 61:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Plugin/StripReviewSummary.php 25:11 warning Expected 1 space after CATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) Plugin/EscapeStripTags.php 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 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 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) Model/Type/Product.php 81:8 warning $escaper, parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 82:8 warning $scopeConfig parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 83:8 warning $storeManager parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 84:8 warning $productFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 85:8 warning $reviewSummaryFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 86:8 warning $ratingOptionFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 87:8 warning $reviewCollectionFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 88:8 warning $moduleManager parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 90:8 warning $imageHelper parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 92:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 92:2 warning Line indented incorrectly; expected 4 spaces, found 1 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 92:9 warning $_escaper parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 92:9 warning $_scopeConfig parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 92:9 warning $_storeManager parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 92:9 warning $_productFactory parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 92:9 warning $_stockState parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 92:9 warning $_reviewSummaryFactory parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 92:9 warning $_ratingOptionVoteFactory parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 92:9 warning $_reviewCollectionFactory parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 92:9 warning $_moduleManager parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 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 Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 105:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 106:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 107:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 108:1 warning Multi-line function declaration not indented correctly; expected 5 spaces but found 8 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 109:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 109:2 warning Line indented incorrectly; expected at least 4 spaces, found 1 (Generic.WhiteSpace.ScopeIndent.Incorrect) 110:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 110:2 warning Line indented incorrectly; expected 4 spaces, found 1 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 135:9 warning Expected "if (...) {\n"; found "if (...){\n" (PEAR.ControlStructures.ControlSignature.Found) 139:9 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 291:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 292:139 warning Line exceeds 120 characters; contains 139 characters (Generic.Files.LineLength.TooLong) 294:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 295:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 325:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 326:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 328:133 warning Line exceeds 120 characters; contains 133 characters (Generic.Files.LineLength.TooLong) 329:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 360:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 393:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 393:3 warning Line indented incorrectly; expected 8 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 393:132 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 394:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 394:7 warning Line indented incorrectly; expected at least 12 spaces, found 6 (Generic.WhiteSpace.ScopeIndent.Incorrect) 395:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 395:11 warning Line indented incorrectly; expected at least 12 spaces, found 10 (Generic.WhiteSpace.ScopeIndent.Incorrect) 396:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 396:11 warning Line indented incorrectly; expected at least 12 spaces, found 10 (Generic.WhiteSpace.ScopeIndent.Incorrect) 397:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 398:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 399:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 400:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 400:11 warning Line indented incorrectly; expected at least 12 spaces, found 10 (Generic.WhiteSpace.ScopeIndent.Incorrect) 401:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 401:7 warning Line indented incorrectly; expected at least 12 spaces, found 6 (Generic.WhiteSpace.ScopeIndent.Incorrect) 402:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 402:3 warning Line indented incorrectly; expected 8 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 483:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 607:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) 617:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 766:57 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 895:140 warning Line exceeds 120 characters; contains 140 characters (Generic.Files.LineLength.TooLong) 1029:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 1047:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) 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) 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 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/cms.phtml 28:14 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) view/frontend/templates/jsonld/organization.phtml 61: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) 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) Block/Category.php 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)