Magento Coding Standard (PHPCS) report for yireo/magento2-extensionchecker ========================================================================== Package version: 2.6.0 | Magento: 2.4.9 | Tested: 2026-10-16 2 errors, 86 warnings in 32 files PhpClass/ClassNameCollector.php 39:17 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 71:14 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 75:21 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 80:19 warning The use of function token_get_all() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 116:30 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 124:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) PhpClass/ClassInspector.php 68:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 75:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 84:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 197:29 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 198:27 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 283:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) 292:8 warning Type is not specified (Magento2.Annotation.MethodArguments.NoTypeSpecified) PhpClass/ComponentCollector.php 45:127 warning Line exceeds 120 characters; contains 127 characters (Generic.Files.LineLength.TooLong) PhpClass/Tokenizer.php 35:19 warning The use of function token_get_all() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) PhpClass/ModuleCollector.php 30:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) ComponentDetector/ComponentDetectorList.php 18:12 warning $runtimeConfig parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 42:27 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) ComponentDetector/GuessComponentDetector.php 43:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) 50:13 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 50:49 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 54:13 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 58:13 warning The use of function is_file() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isFile() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 62:13 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 66:13 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 70:13 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) ComponentDetector/PhpClassComponentDetector.php 59:24 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 107:32 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 135:29 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) ComponentDetector/TemplateComponentDetector.php 44:27 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) ComponentDetector/LayoutComponentDetector.php 40:27 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) ComponentDetector/PhpFileComponentDetector.php 45:31 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) ComponentDetector/XmlComponentDetector.php 41:17 warning The use of function basename() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 45:27 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Composer/ComposerFile.php 45:141 warning Line exceeds 120 characters; contains 141 characters (Generic.Files.LineLength.TooLong) 87:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 87:54 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 87:55 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) 91:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 91:54 warning Newline required after opening brace (Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace) 91:55 warning Closing brace must be on a line by itself (Squiz.WhiteSpace.ScopeClosingBrace.ContentBefore) Composer/ComposerFileProvider.php 40:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 103:9 warning The use of function chdir() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 128:9 warning The use of function chdir() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) ComponentCollector/AbstractComponentCollector.php 70:1 warning Code must not contain multiple empty lines in a row; found 2 empty lines. (Magento2.Whitespace.MultipleEmptyLines.MultipleEmptyLines) Message/MessageGroupLabels.php 7:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 8:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 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) 14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 15:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 16:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Scan/Scan.php 33:12 warning $scanComposerFile parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Scan/ScanComposerFile.php 58:128 warning Line exceeds 120 characters; contains 128 characters (Generic.Files.LineLength.TooLong) Scan/ScanComposerRequirements.php 210:125 warning Line exceeds 120 characters; contains 125 characters (Generic.Files.LineLength.TooLong) Scan/ScanDeprecatedClasses.php 37:15 warning Expected 1 space after CATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) Console/Command/InspectClassCommand.php 30:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) Console/Command/ListDependenciesCommand.php 33:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 35:12 warning $componentDetectorList parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 38:1 warning Multi-line function declaration not indented correctly; expected 8 spaces but found 30 (Squiz.Functions.MultiLineFunctionDeclaration.Indent) 40:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) Console/Command/CreatePlantUmlDiagramCommand.php 113:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 149:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Console/Command/SuggestComposerJsonCommand.php 123:28 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Console/Command/CheckMagentoVersionCommand.php 98:13 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 99:55 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 104:13 warning The use of function file_put_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Console/Command/ListModulesCommand.php 29:29 warning The closing parenthesis of a multi-line function declaration must be on a new line (Squiz.Functions.MultiLineFunctionDeclaration.CloseBracketLine) 30:5 warning The closing parenthesis and the opening brace of a multi-line function declaration must be on the same line (Squiz.Functions.MultiLineFunctionDeclaration.NewlineBeforeOpenBrace) 107:23 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 108:33 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 111:23 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 122:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 122:11 warning Expected 1 space after CATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) Console/Command/ListClassesCommand.php 35:8 warning null is not a valid PHP type (Magento2.Annotation.MethodArguments.NotValidType) 111:15 warning Expected 1 space after CATCH keyword; 0 found (Squiz.ControlStructures.ControlSignature.SpaceAfterKeyword) Component/ComponentFactory.php 81:126 warning Line exceeds 120 characters; contains 134 characters (Generic.Files.LineLength.TooLong) Util/CheckerConfiguration.php 32:29 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) 48:41 warning Only one argument is allowed per line in a multi-line function call (PSR2.Methods.FunctionCallSignature.MultipleArguments) 51:23 warning The use of function file_exists() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 55:28 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Test/Integration/Scan/ScanComposerRequirementsTest.php 30:9 warning Line exceeds 120 characters; contains 150 characters (Generic.Files.LineLength.TooLong) Test/Integration/XmlLayout/FileCollectorTest.php 21:1 warning Expected 1 newline at end of file; 0 found (PSR2.Files.EndFileNewline.NoneFound) Test/Integration/Component/ComponentFactoryTest.php 18:57 error Class ComponentFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor) 40:57 error Class ComponentFactory needs to be requested in constructor, otherwise compiler will not be able to find and generate this class (Magento2.PHP.AutogeneratedClassNotInConstructor.AutogeneratedClassNotInConstructor)