Magento Coding Standard (PHPCS) report for loki/magento2-components =================================================================== Package version: 2.8.2 | Magento: 2.4.9 | Tested: 2026-10-13 1 error, 53 warnings in 32 files Layout/LayoutHandlerInterface.php 9:8 warning string[] parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 12:12 warning $handles parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Filter/Security.php 9:8 warning Line indented incorrectly; expected 8 spaces, found 7 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 11:9 warning Closing brace indented incorrectly; expected 7 spaces, found 8 (Squiz.WhiteSpace.ScopeClosingBrace.Indent) 17:22 warning The use of function html_entity_decode() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Filter/FilterScopeFactory.php 12: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) Observer/AssignAdditionalBlockVariables.php 72:78 warning Line exceeds 120 characters; contains 142 characters (Generic.Files.LineLength.TooLong) 76:79 warning Line exceeds 120 characters; contains 143 characters (Generic.Files.LineLength.TooLong) 127:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Setup/ModuleDependencies.php 31:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Setup/Recurring.php 20:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Component/Component.php 67:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) Component/ComponentRepositoryInterface.php 16:1 warning The closing brace for the interface must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Component/ComponentInterface.php 23:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) Component/ComponentContext.php 15:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) Controller/Adminhtml/Index/FormKey.php 12:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Controller/Index/Polling.php 25:21 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Config/XmlConfig/FileReader.php 12:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) Config/XmlConfig/SchemaLocator.php 12:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Util/Controller/RequestDataLoader.php 94:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Util/Controller/ComponentUpdate.php 6:1 warning There must be one blank line after the last USE statement; 0 found; (PSR2.Namespaces.UseDeclaration.SpaceAfterLastUse) Util/ComponentUtil.php 31:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 39:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) Util/Block/ChildCounter.php 8:1 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDeprecatedTagUsage) Util/Block/CssStyle.php 10:1 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDeprecatedTagUsage) Util/Block/ImageRenderer.php 181:20 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) 184:22 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) Util/Block/BlockRenderer.php 15:8 warning $blockName parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 19:12 warning $ancestorBlock parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 49:8 warning $blockName parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 53:12 warning $ancestorBlock parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Util/Block/ChildRenderer.php 8:1 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDeprecatedTagUsage) Util/Block/CssClass.php 10:1 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDeprecatedTagUsage) Messages/GlobalMessageRegistry.php 12:1 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDeprecatedTagUsage) 27:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 37:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 47:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) 57:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) Messages/LocalMessageRegistry.php 51:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) Messages/LocalMessage.php 10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 11: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) 13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Messages/GlobalMessage.php 10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 11: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) 13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 15:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Validator/RequiredValidator.php 32:123 warning Line exceeds 120 characters; contains 123 characters (Generic.Files.LineLength.TooLong) Location/Location.php 87:1 warning The closing brace for the class must go on the next line after the body (PSR2.Classes.ClassDeclaration.CloseBraceAfterBody) Location/Address.php 184:12 warning Motivation behind the added @deprecated tag MUST be explained. @see tag MUST be used with reference to new implementation when code is deprecated and there is a new alternative. (Magento2.Annotation.MethodAnnotationStructure.InvalidDeprecatedTagUsage) Test/Integration/Observer/AddHtmlAttributesToComponentBlockTest.php 45:130 warning Line exceeds 120 characters; contains 130 characters (Generic.Files.LineLength.TooLong) 67:67 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) Test/Integration/Validator/EmailValidatorTest.php 28:70 error 'true' type declaration is not present in PHP version 8.1 or earlier (PHPCompatibility.FunctionDeclarations.NewParamTypeDeclarations.trueFound)