Magento Coding Standard (PHPCS) report for elgentos/magento2-inventory-log ========================================================================== Package version: 1.2.1 | Magento: 2.4.9 | Tested: 2026-10-09 24 errors, 137 warnings in 41 files Plugin/ModuleStatus.php 26:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 29:5 warning Expected 5 spaces before asterisk; 4 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 30:5 warning Expected 5 spaces before asterisk; 4 found (Squiz.Commenting.DocCommentAlignment.SpaceBeforeStar) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 50:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 51:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/Stock/StockItemRepository.php 61:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 81:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/Webapi/Stock/StockItemRepository.php 10:8 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Plugin/StockPlugin.php 53:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 56:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 57:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/ProductAttributeSave.php 45:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Plugin/Import/Product.php 175:15 warning Function's nesting level (6) exceeds 5; consider refactoring the function (Generic.Metrics.NestingLevel.TooHigh) 202:32 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Plugin/CancelOrderItem.php 57:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Helper/Data.php 22:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 23:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 24:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 25:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 26:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 28:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 29:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 30:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 31:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 32:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 123:8 warning $user parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 123:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 127:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) Model/ResourceModel/Movement/Grid/Collection.php 40:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 41:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 42:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 43:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 44:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 45:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) Model/ResourceModel/Movement/Collection.php 32:13 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 33:13 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 44:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) Model/ResourceModel/Movement.php 30:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 71:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 90:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 91:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Model/Movement.php 27:22 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) Observer/RefundOrderInventoryObserver.php 64:12 warning $productMetadata parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Observer/CheckoutAllSubmitAfter.php 79:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 91:12 warning Function's nesting level (6) exceeds 5; consider refactoring the function (Generic.Metrics.NestingLevel.TooHigh) 126:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) Observer/ImportProductData.php 85:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 97:12 warning Function's nesting level (6) exceeds 5; consider refactoring the function (Generic.Metrics.NestingLevel.TooHigh) Observer/AfterImportProductData.php 90:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) Setup/InstallSchema.php 1:1 error InstallSchema scripts are obsolete. Please use declarative schema approach in module's etc/db_schema.xml file (Magento2.Legacy.InstallUpgrade.ObsoleteInstallSchemaScript) 41:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 181:177 warning Line exceeds 120 characters; contains 177 characters (Generic.Files.LineLength.TooLong) 185:306 warning Line exceeds 120 characters; contains 306 characters (Generic.Files.LineLength.TooLong) 193:177 warning Line exceeds 120 characters; contains 177 characters (Generic.Files.LineLength.TooLong) 199:308 warning Line exceeds 120 characters; contains 308 characters (Generic.Files.LineLength.TooLong) Setup/UpgradeData.php 1:1 error UpgradeData scripts are obsolete. Please use data patches approach in module's Setup/Patch/Data dir (Magento2.Legacy.InstallUpgrade.ObsoleteUpgradeDataScript) 32:9 warning Empty IF statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedIf) Setup/InstallData.php 1:1 error InstallData scripts are obsolete. Please use data patches approach in module's Setup/Patch/Data dir (Magento2.Legacy.InstallUpgrade.ObsoleteInstallDataScript) 28:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction) Setup/UpgradeSchema.php 1:1 error UpgradeSchema scripts are obsolete. Please use declarative schema approach in module's etc/db_schema.xml file (Magento2.Legacy.InstallUpgrade.ObsoleteUpgradeSchemaScript) 33:9 warning Empty IF statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedIf) HyvaGridProcessor/MovementCollectionProcessor.php 16:18 warning Opening parenthesis of a multi-line function call must be the last content on the line (PSR2.Methods.FunctionCallSignature.ContentAfterOpenBracket) 17:1 warning Multi-line function call not indented correctly; expected 8 spaces but found 12 (PSR2.Methods.FunctionCallSignature.Indent) 17:54 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) 17:61 warning Closing parenthesis of a multi-line function call must be on a line by itself (PSR2.Methods.FunctionCallSignature.CloseBracketLine) Ui/DataProvider/Product/Form/Modifier/Editproduct.php 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 147:8 warning $data parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 150:12 warning $meta parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 200:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 201:1 warning Multi-line function call not indented correctly; expected 20 spaces but found 24 (PSR2.Methods.FunctionCallSignature.Indent) 202:1 warning Multi-line function call not indented correctly; expected 16 spaces but found 20 (PSR2.Methods.FunctionCallSignature.Indent) Ui/DataProvider/Product/Form/Movement.php 38:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 77:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) etc/config.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) etc/adminhtml/routes.xml 3:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 4:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 5:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 6:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 7:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) etc/adminhtml/di.xml 1:1 warning End of line character is invalid; expected "\n" but found "\r\n" (Generic.Files.LineEndings.InvalidEOLChar) Controller/Adminhtml/Grid/Index.php 41:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) Controller/Adminhtml/Product/Graph.php 41:1 warning Expected 1 blank line at end of file; 2 found (PSR2.Files.EndFileNewline.TooMany) view/adminhtml/templates/graph.phtml 14:33 warning Short echo tag syntax must be used; expected "