Magento Coding Standard (PHPCS) report for tweakwise/magento2-tweakwise ======================================================================= Package version: v11.1.0 | Magento: 2.4.9 | Tested: 2026-09-25 1 error, 94 warnings in 51 files src/ViewModel/ProductListItem.php 57:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/ViewModel/LinkedProductListItem.php 44:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/ViewModel/PersonalMerchandisingAnalytics.php 118:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) src/Model/FilterFormInputProvider/HashInputProvider.php 46:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) src/Model/NavigationConfig.php 198:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) src/Model/UrlPaginationHelper.php 16:21 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 24:13 warning The use of function parse_str() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) src/Model/Catalog/Layer/Url.php 199:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) src/Model/Catalog/Layer/Url/Strategy/QueryParameterStrategy.php 134:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 309:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 321:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 383:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 448:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) src/Model/Catalog/Layer/Url/Strategy/PathSlugStrategy.php 247:9 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 311:17 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/Model/Catalog/Layer/Url/Strategy/UrlStrategyFactory.php 55:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/Model/Catalog/Layer/Filter/Item.php 19:4 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) src/Model/Catalog/Layer/FilterList/Tweakwise.php 215:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 217:101 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) src/Model/Catalog/Layer/ItemCollectionProvider.php 73:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 76:17 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 84:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/Model/Catalog/Layer/Filter.php 122:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 155:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 206:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 257:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 299:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 320:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) src/Model/Catalog/Product/Recommendation/RequestPrefetcher.php 103:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) src/Model/Catalog/Product/Collection.php 210:17 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 404:13 warning $entityIdToKey parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) src/Model/Observer/NavigationHtmlOverride.php 23:4 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 55:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) src/Model/Seo/FilterHelper.php 62:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/Model/Autocomplete/DataProvider/SuggestionBlockItem.php 12:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) src/Model/Autocomplete/DataProvider/SuggestionDataProvider.php 205:120 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 286:120 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 294:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) src/Model/Visual.php 90:12 warning $attributes parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) src/Model/Client/Type/SuggestionType/SuggestionTypeFacet.php 76:12 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) src/Model/Client/Type/ItemType.php 93:8 warning Line exceeds 120 characters; contains 148 characters (Generic.Files.LineLength.TooLong) 106:21 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 151:17 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/Model/Client/Type/FacetType.php 86:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/Model/Client/Request/Recommendations/ProductRequest.php 80:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong) src/Model/Client/Request.php 171:8 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 252:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) src/Model/AttributeSlugRepository.php 78:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 96:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 160:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) src/Observer/Event/StashAddToWishlistEvent.php 41:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) src/Setup/Patch/Schema/AddAttributeCodeToTweakwiseAttributeSlugTable.php 32:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/view/frontend/templates/analytics.phtml 35:35 error Unescaped output detected. (Magento2.Security.XssTemplate.FoundUnescaped) src/view/frontend/templates/product/list/linked-item.phtml 77:28 warning Line indented incorrectly; expected 28 spaces, found 27 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) src/view/frontend/templates/product/list/item.phtml 104:1 warning Multi-line function call not indented correctly; expected 29 spaces but found 28 (PSR2.Methods.FunctionCallSignature.Indent) 105:1 warning Multi-line function call not indented correctly; expected 29 spaces but found 28 (PSR2.Methods.FunctionCallSignature.Indent) 106:1 warning Multi-line function call not indented correctly; expected 25 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 106:25 warning Line indented incorrectly; expected at least 25 spaces, found 24 (Generic.WhiteSpace.ScopeIndent.Incorrect) 114:1 warning Multi-line function call not indented correctly; expected 29 spaces but found 28 (PSR2.Methods.FunctionCallSignature.Indent) 115:1 warning Multi-line function call not indented correctly; expected 29 spaces but found 28 (PSR2.Methods.FunctionCallSignature.Indent) 116:1 warning Multi-line function call not indented correctly; expected 25 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 116:25 warning Line indented incorrectly; expected at least 25 spaces, found 24 (Generic.WhiteSpace.ScopeIndent.Incorrect) 135:1 warning Multi-line function call not indented correctly; expected 13 spaces but found 12 (PSR2.Methods.FunctionCallSignature.Indent) 136:1 warning Multi-line function call not indented correctly; expected 13 spaces but found 12 (PSR2.Methods.FunctionCallSignature.Indent) 137:1 warning Multi-line function call not indented correctly; expected 9 spaces but found 8 (PSR2.Methods.FunctionCallSignature.Indent) 137:9 warning Line indented incorrectly; expected at least 9 spaces, found 8 (Generic.WhiteSpace.ScopeIndent.Incorrect) src/view/frontend/web/js/navigation-form.js 1:1 warning Avoid using closing slash with void tags, this can lead to unexpected behavior - "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) src/Api/Data/VisualInterface.php 68:12 warning $attributes parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) src/Block/LayeredNavigation/RenderLayered/LinkRenderer.php 35:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) src/Block/LayeredNavigation/RenderLayered/LinkRenderer/ItemRenderer.php 50:9 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) src/Block/Catalog/Product/ProductList/Featured.php 147:1 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) src/Block/Navigation/FilterRenderer/Plugin.php 101:17 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/Block/Product/ListProduct.php 91:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 110:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 139:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/Block/Product/ProductList/Linked.php 83:13 warning Expected 0 spaces after opening bracket; newline found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) src/Block/Cart/Crosssell/Plugin.php 99:8 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) tests/Unit/ViewModel/ProductListItemTest.php 80:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 94:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) tests/Unit/ViewModel/PersonalMerchandisingAnalyticsTest.php 84:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) tests/Unit/Plugin/ProductList/AddProductAnalyticsDataTest.php 65:119 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 91:122 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) tests/Unit/Model/NavigationConfigTest.php 96:132 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) tests/Unit/Model/Catalog/Layer/Url/StrategyHelperTest.php 53:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong) 121:136 warning Line exceeds 120 characters; contains 136 characters (Generic.Files.LineLength.TooLong) tests/Unit/Model/Analytics/PurchaseEventsResolverTest.php 76:129 warning Line exceeds 120 characters; contains 129 characters (Generic.Files.LineLength.TooLong) tests/Unit/Model/Config/TemplateFinderTest.php 181:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) tests/Unit/Model/Client/RequestTest.php 35:127 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) tests/Unit/Observer/Event/StashAddToCartEventTest.php 156:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) tests/Unit/Setup/Patch/Schema/SchemaPatchesTest.php 40:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 65:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 88:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 111:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 140:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) 141:126 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong)