Magento Coding Standard (PHPCS) report for sebwite/magento2-product-downloads ============================================================================= Package version: 1.1.1 | Magento: 2.4.9 | Tested: 2026-05-27 6 errors, 76 warnings in 11 files Model/Upload.php 14:4 warning Tag @author MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 15:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 22:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 50:124 warning Line exceeds 120 characters; contains 124 characters (Generic.Files.LineLength.TooLong) 60:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 79:171 warning Line exceeds 120 characters; contains 171 characters (Generic.Files.LineLength.TooLong) 86:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 87:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Download.php 15:4 warning Tag @author MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 16:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 27:5 warning Constants must have short description if they add information beyond what the constant name supplies. (Magento2.Commenting.ConstantsPHPDocFormatting.MissingConstantPHPDoc) 27:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 33:5 warning Constants must have short description if they add information beyond what the constant name supplies. (Magento2.Commenting.ConstantsPHPDocFormatting.MissingConstantPHPDoc) 33:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 39:5 warning Constants must have short description if they add information beyond what the constant name supplies. (Magento2.Commenting.ConstantsPHPDocFormatting.MissingConstantPHPDoc) 39:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 40:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 42:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 67:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 67:184 warning Line exceeds 120 characters; contains 184 characters (Generic.Files.LineLength.TooLong) 86:79 warning There must be exactly one blank line between lines short and long descriptions (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 98:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 109:41 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 124:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 140:22 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) Model/Resource/Download.php 1:48 error Cannot use "Resource" in namespace as it is reserved since PHP 7 (Magento2.NamingConvention.ReservedWords.ForbiddenAsNameSpace) 11:4 warning Tag @author MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 36:212 warning Line exceeds 120 characters; contains 212 characters (Generic.Files.LineLength.TooLong) 53:37 warning The use of function is_null() is discouraged; use strict comparison "=== null"() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 79:41 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 90:25 error Class 'Zend_Db_Select' is restricted in /data/vendor/sebwite/magento2-product-downloads/Model/Resource/Download.php. Suggested replacement: \Magento\Framework\DB\Select (Magento2.Legacy.RestrictedCode.ZendDbSelect) 113:15 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) Observer/Product/Save.php 29:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 42:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 44:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 66:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 83:52 warning Use ::class notation instead. (Magento2.PHP.LiteralNamespaces.LiteralClassUsage) 94:13 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 99:17 warning Expected "if (...) {\n"; found "if(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 99:17 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 108:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) 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) 11:4 warning Tag @author MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 36:188 warning Line exceeds 120 characters; contains 188 characters (Generic.Files.LineLength.TooLong) 37:165 warning Line exceeds 120 characters; contains 165 characters (Generic.Files.LineLength.TooLong) 38:240 warning Line exceeds 120 characters; contains 240 characters (Generic.Files.LineLength.TooLong) Ui/DataProvider/Product/Form/Modifier/ProductDownloads.php 11:15 warning Missing PHP DocBlock for class property. (Magento2.Commenting.ClassPropertyPHPDocFormatting.Missing) 22:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 32:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 53:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 76:219 warning Line exceeds 120 characters; contains 224 characters (Generic.Files.LineLength.TooLong) 103:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 105:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 109:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) registration.php 6:2 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Controller/Adminhtml/Delete/Index.php 11:4 warning Tag @author MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 12:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 23:8 warning Content missing for @var tag in class property declaration. (Magento2.Commenting.ClassPropertyPHPDocFormatting.EmptyVar) 32:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) 61:146 warning Line exceeds 120 characters; contains 146 characters (Generic.Files.LineLength.TooLong) 67:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong) view/frontend/templates/downloads.phtml 3:7 warning Expected 1 space after IF keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 3:10 warning Expected 0 spaces after opening bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpacingAfterOpenBrace) 3:32 warning Expected 0 spaces before closing bracket; 1 found (PSR2.ControlStructures.ControlStructureSpacing.SpaceBeforeCloseBrace) 3:33 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 6:19 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 6:50 warning Expected 0 spaces after closing parenthesis; found 1 (Squiz.ControlStructures.ControlSignature.SpaceAfterCloseParenthesis) 8:30 warning Short echo tag syntax must be used; expected "" (Magento2.Html.HtmlClosingVoidTags.HtmlClosingVoidElements) 1:1 error Avoid using self-closing tag with non-void html element - "