Magento Coding Standard (PHPCS) report for phoenix-media/magento2-cleanup ========================================================================= Package version: 1.0.4 | Magento: 2.4.9 | Tested: 2026-05-27 4 errors, 149 warnings in 21 files Helper/Data.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 46:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 67:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 78:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 91:22 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) Model/Cron.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 49:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) 62:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) Model/Config.php 67:16 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 93:16 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 132:16 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 189:16 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 215:16 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 241:16 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 267:16 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/Handler/AdminNotifications.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 54:17 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 58:17 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 59:21 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 60:21 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) 70:31 error Class 'Zend_Date' is restricted in /data/vendor/phoenix-media/magento2-cleanup/Model/Handler/AdminNotifications.php. Suggested replacement: \IntlDateFormatter (Magento2.Legacy.RestrictedCode.ZendDateIsRestricted) 71:35 error Class 'Zend_Date' is restricted in /data/vendor/phoenix-media/magento2-cleanup/Model/Handler/AdminNotifications.php. Suggested replacement: \IntlDateFormatter (Magento2.Legacy.RestrictedCode.ZendDateIsRestricted) Model/Handler/AbstractFiles.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 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) 95:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 128:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 136:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 147:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 154:13 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 162:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 173:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 192:31 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 196:67 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 210:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 230:18 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 235:17 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 236:17 warning The use of function filemtime() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 248:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 255:29 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 255:36 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 257:33 warning The use of function intval() is discouraged; use (int) construction() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 257:40 warning The use of function filesize() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 261:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 262:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 273:33 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 273:71 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Handler/Media.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 29:5 error Class 'Zend_Db_Select' is restricted in /data/vendor/phoenix-media/magento2-cleanup/Model/Handler/Media.php. Suggested replacement: \Magento\Framework\DB\Select (Magento2.Legacy.RestrictedCode.ZendDbSelect) 34:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 94:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) 164:154 warning Line exceeds 120 characters; contains 154 characters (Generic.Files.LineLength.TooLong) 165:134 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) 190:24 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 191:18 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 232:15 warning Function's nesting level (6) exceeds 5; consider refactoring the function (Generic.Metrics.NestingLevel.TooHigh) 244:33 warning The use of function rmdir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::deleteDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 273:21 error Class 'Zend_Db_Select' is restricted in /data/vendor/phoenix-media/magento2-cleanup/Model/Handler/Media.php. Suggested replacement: \Magento\Framework\DB\Select (Magento2.Legacy.RestrictedCode.ZendDbSelect) 301:24 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 303:18 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 308:22 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 345:18 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 352:17 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 360:52 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 361:30 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 366:25 warning The use of function copy() is discouraged; use Magento\Framework\Filesystem\DriverInterface::copy() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 371:25 warning The use of function unlink() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/Handler/QuotesGuest.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) Model/Handler/QuotesCustomer.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) Model/Handler/FilesFolders.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 53:17 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 55:21 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 75:65 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 75:135 warning Line exceeds 120 characters; contains 135 characters (Generic.Files.LineLength.TooLong) 81:131 warning Line exceeds 120 characters; contains 131 characters (Generic.Files.LineLength.TooLong) Model/Handler/AbstractHandler.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 43:8 warning Short description must start with a capital letter (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 45:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) Model/Handler/FilesReports.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 39:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 62:18 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 63:9 warning Expected "foreach (...) {\n"; found "foreach(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 63:9 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 64:17 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 78:57 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 78:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) 88:15 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Model/Handler/Resolver.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 21:4 warning Tag @package MUST NOT be used. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.ForbiddenTags) 23:1 warning Class description must contain meaningful information beyond what its name provides or be removed. (Magento2.Commenting.ClassAndInterfacePHPDocFormatting.InvalidDescription) 26:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 32:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 33:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 34:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 35:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 35:2 warning Line indented incorrectly; expected at least 4 spaces, found 1 (Generic.WhiteSpace.ScopeIndent.Incorrect) 37:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 38:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 39:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 40:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 42:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 42:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 2 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 42:3 warning Line indented incorrectly; expected at least 4 spaces, found 2 (Generic.WhiteSpace.ScopeIndent.Incorrect) 47:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 47:2 warning Line indented incorrectly; expected 4 spaces, found 1 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 47:2 warning Closing brace indented incorrectly; expected 4 spaces, found 1 (Squiz.WhiteSpace.ScopeClosingBrace.Indent) 54:1 warning Spaces must be used to indent lines; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.TabsUsed) 54:2 warning Line indented incorrectly; expected 4 spaces, found 1 (Generic.WhiteSpace.ScopeIndent.IncorrectExact) 55:5 warning Opening brace indented incorrectly; expected 1 spaces, found 4 (Squiz.Functions.MultiLineFunctionDeclaration.BraceIndent) 57:5 warning Closing brace indented incorrectly; expected 1 spaces, found 4 (Squiz.WhiteSpace.ScopeClosingBrace.Indent) Model/Handler/FilesLogs.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 53:21 warning The use of function glob() is discouraged; use Magento\Framework\Filesystem\Glob::glob() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 54:9 warning Expected "foreach (...) {\n"; found "foreach(...) {\n" (PEAR.ControlStructures.ControlSignature.Found) 54:9 warning Expected 1 space after FOREACH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) 55:17 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 67:13 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 68:135 warning Line exceeds 120 characters; contains 135 characters (Generic.Files.LineLength.TooLong) 69:52 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 82:64 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 82:137 warning Line exceeds 120 characters; contains 137 characters (Generic.Files.LineLength.TooLong) Model/Flag.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 18:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 19:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 20:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 26:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 28:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 29:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 40:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 41:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 47:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 53:5 warning Missing short description (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 54:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 60:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Setup/Patch/Data/RemoveConfigValueInDefaultCronGroup.php 16:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 26:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 28:12 warning Comment block is missing (Magento2.Annotation.MethodAnnotationStructure.NoCommentBlock) Console/Command/CleanupCommand.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 25:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 36:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) 54:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 72:8 warning If the @inheritdoc not inline it shouldn’t have braces (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 74:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) registration.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) Logger/Handler.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 14:1 warning There must be one blank line after the namespace declaration (PSR2.Namespaces.NamespaceDeclaration.BlankLineAfter) 26:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) Logger/Logger.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) Api/HandlerInterface.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) Block/Adminhtml/System/Config/Fieldset/Folders.php 11:12 warning Spaces must be used for alignment; tabs are not allowed (Generic.WhiteSpace.DisallowTabIndent.NonIndentTabsUsed) 22:8 warning There must be exactly one blank line before tags (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation) 22:20 warning Short description should not be in multi lines (Magento2.Annotation.MethodAnnotationStructure.MethodAnnotation)