Magento Coding Standard (PHPCS) report for bradsearch/magento-extension ======================================================================= Package version: v2.3.2 | Magento: 2.4.9 | Tested: 2026-11-25 13 errors, 77 warnings in 20 files phpunit.bootstrap.php 15:1 error "require" statement detected. File manipulations are discouraged. Concatenating is forbidden. (Magento2.Security.IncludeFile.FoundIncludeFile) Analytics/Model/OrderEvents/OutboxSender.php 30:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 110:13 warning Avoid function calls in a FOR loop test part (Generic.CodeAnalysis.ForLoopWithTestFunctionCall.NotAllowed) 141:13 warning $row parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 156:142 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 183:132 warning Line exceeds 120 characters; contains 132 characters (Generic.Files.LineLength.TooLong) 217:22 warning The use of function call_user_func() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Analytics/Model/OrderEvents/Outbox.php 107:123 warning Line exceeds 120 characters; contains 126 characters (Generic.Files.LineLength.TooLong) 131:125 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 132:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 139:13 warning $id parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) SearchGraphQl/Plugin/CatalogGraphQl/Model/Resolver/Products.php 227:19 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 228:30 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 278:19 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 279:30 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 301:19 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 302:20 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) SearchGraphQl/Plugin/CatalogGraphQl/Model/Resolver/Aggregations.php 118:59 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 143:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 234:19 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) 235:28 error Direct use of $_GET Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageError) SearchGraphQl/Model/SearchTermFilter.php 19:174 warning Line exceeds 120 characters; contains 174 characters (Generic.Files.LineLength.TooLong) SearchGraphQl/Model/Data/PriceTuple.php 12:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) SearchGraphQl/Model/Data/Money.php 11:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) SearchGraphQl/Model/Data/CalculatedPrice.php 12:1 error Final keyword is prohibited in Magento. It decreases extensibility and is not compatible with plugins and proxies. (Magento2.PHP.FinalImplementation.FoundFinal) SearchGraphQl/Model/Api/Client.php 88:130 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 95:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 121:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 127:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 153:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 177:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 183:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 278:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 494:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) SearchGraphQl/Model/Api/ResponseMapper.php 239:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) 240:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) SearchGraphQl/Model/Sync/ProductStateHasher.php 22:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 31:12 warning $state parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 60:13 warning $values parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 71:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 75:13 warning $valuesByAttribute parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 93:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 97:13 warning $valuesByAttribute parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) SearchGraphQl/Model/Sync/ProductStateReader.php 118:12 warning $attributeIdsByType parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 118:12 warning $ruleDates parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 206:13 warning $attributeIdsByType parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 390:13 warning $ruleDates parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) SearchGraphQl/Model/Sync/StockStatusSnapshot.php 128:12 warning $rows parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 184:121 warning Line exceeds 120 characters; contains 121 characters (Generic.Files.LineLength.TooLong) SearchGraphQl/Model/Sync/ChangeFilter.php 110:12 warning int[]> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 110:12 warning $productIdsByStore parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 110:12 warning $forcedByStore parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 150:50 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 180:12 warning $hashes parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 221:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 225:13 warning $dates parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 247:13 warning $values parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) SearchGraphQl/Model/Sync/FetchRecorder.php 184:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 189:12 warning $cursor parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 202:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 208:12 warning $cursor parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 249:122 warning Line exceeds 120 characters; contains 122 characters (Generic.Files.LineLength.TooLong) 258:28 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 263:58 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 287:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 294:13 warning $cursor parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 315:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 321:13 warning $cursor parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) SearchGraphQl/Model/MockData/ProductsProvider.php 62:140 warning Line exceeds 120 characters; contains 144 characters (Generic.Files.LineLength.TooLong) SearchGraphQl/Cron/SyncChangedProducts.php 344:13 warning int[]> duplicate found in method annotation (Magento2.Annotation.MethodArguments.DuplicateParam) 344:13 warning $productIdsByStore parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 344:13 warning $forcedByStore parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 431:21 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) 468:21 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 496:13 warning $pending parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 525:67 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 526:67 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 537:13 warning $pending parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 621:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 627:13 warning $changes parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 627:13 warning $waiting parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 679:13 warning $waiting parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 679:13 warning $held parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 707:8 warning Method arguments visual alignment must be consistent (Magento2.Annotation.MethodArguments.VisualAlignment) 714:13 warning $plan parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 714:13 warning $filtered parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 765:13 warning $plan parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) ProductFeatures/Model/Resolver/Features.php 460:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) ProductFeatures/Model/AttributeFilter.php 98:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) 123:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction)