Magento Coding Standard (PHPCS) report for zero1limited/module-auto-add-free-product ==================================================================================== Package version: 1.2.1 | Magento: 2.4.9 | Tested: 2026-06-01 37 warnings in 3 files Plugin/Magento/SalesRule/Model/Rule/Metadata/ValueProvider/GetMetadataValuesAfter.php 8:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 9:8 warning \Magento\SalesRule\Model\Rule\Metadata\ValueProvider\Interceptor parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 9:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 10:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 12:12 warning $valueProvider parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 14:9 warning Expected "if (...) {\n"; found "if(...){\n" (PEAR.ControlStructures.ControlSignature.Found) 14:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 22:10 warning Expected 1 space after closing parenthesis; found 0 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 31:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Model/RulesApplierPlugin.php 9:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 13: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 Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 30:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 49:26 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 55:17 warning Empty IF statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedIf) 71:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 75:43 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 80:9 warning Inline control structures are not allowed (Generic.ControlStructures.InlineControlStructure.NotAllowed) 80:9 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 81:20 warning Whitespace found at end of line (Squiz.WhiteSpace.SuperfluousWhitespace.EndLine) 88:47 warning TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" (Generic.PHP.LowerCaseConstant.Found) 89:55 warning TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL" (Generic.PHP.LowerCaseConstant.Found) 100:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 104:43 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 114:62 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 124:36 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 128:9 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 129:9 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 138:68 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 148:36 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 158:36 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 173:9 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 173:138 warning Line exceeds 120 characters; contains 138 characters (Generic.Files.LineLength.TooLong) 199:51 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) Observer/SalesRule/ActionsTabPrepareFormObserver.php 8:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 9:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 12:12 warning Empty FUNCTION statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedFunction)