Magento Coding Standard (PHPCS) report for swissup/module-marketplace ===================================================================== Package version: 1.12.1 | Magento: 2.4.9 | Tested: 2026-10-13 104 warnings in 49 files Helper/Composer.php 159:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Model/ChannelRepository.php 101:12 warning Extra @param found in method annotation (Magento2.Annotation.MethodArguments.ExtraParam) 122:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/Process.php 12:13 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) 17:13 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) Model/Channel/Composer.php 66:8 warning $data[optional] parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 68:12 warning $data parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 282:20 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Model/ChannelFactory.php 39:17 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 52:21 warning The use of function parse_url() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 55:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Model/PackagesList/Remote.php 14:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 69:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 81:15 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/PackageManager.php 70:6 warning Expected 1 space after asterisk; 0 found (Squiz.Commenting.DocCommentAlignment.NoSpaceAfterStar) 343:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Model/Handler/AbstractHandler.php 22:9 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Model/Handler/PackageAbstractHandler.php 18:15 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) Model/Handler/Additional/MaintenanceEnable.php 33:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Model/Handler/Additional/ProcessRunner.php 15:13 warning Class properties must have type declaration using @var tag. (Magento2.Commenting.ClassPropertyPHPDocFormatting.MissingVar) 69:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Model/ResourceModel/Package/Collection.php 78:15 warning Usage of ELSE IF is discouraged; use ELSEIF instead (PSR2.ControlStructures.ElseIfDeclaration.NotAllowed) 189:6 warning Expected 1 space after asterisk; 2 found (Squiz.Commenting.DocCommentAlignment.SpaceAfterStar) Model/Logger/NoErrorsConsoleLogger.php 18:54 warning Short array syntax must be used to define arrays (Generic.Arrays.DisallowLongArraySyntax.Found) Model/Logger/BufferLogger.php 12:12 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Model/Config/Source/StoresTree.php 11:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) 18:8 warning Short description duplicates class property name. (Magento2.Commenting.ClassPropertyPHPDocFormatting.AlreadyHaveMeaningfulNameVar) Model/Cache.php 94:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) Model/ComposerApplication.php 72:26 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 74:9 warning The use of function putenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 77:13 warning The use of function putenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 87:13 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 94:47 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 94:63 warning The use of function is_writable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isWritable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 100:38 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 100:57 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 100:73 warning The use of function is_writable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isWritable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 100:85 warning The use of function dirname() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getParentDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 115:29 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 120:20 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 134:25 warning The use of function getenv() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) 149:29 warning Direct use of $_SERVER Superglobal detected. (Magento2.Security.Superglobal.SuperglobalUsageWarning) 155:52 warning The use of function is_dir() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isDirectory() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) Model/Traits/CmdOptions.php 11:27 warning Static method cannot be intercepted and its use is discouraged. (Magento2.Functions.StaticFunction.StaticFunction) Console/Command/PackageAbstractCommand.php 13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 70:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 103:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 186:13 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Console/Command/ChannelAuthKeyRemoveCommand.php 25:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) 62:21 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) 66:21 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Console/Command/PackageInstallCommand.php 13:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 48:8 warning $storeManager parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 49:8 warning $questionFactory parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 50:8 warning $choiceQuestionFactory parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 51:8 warning $questionHelper parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 52:8 warning $listFactory parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 54:12 warning $composerHelper parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Console/Command/ChannelListCommand.php 40:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ComposerAuthPathCommand.php 40:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ChannelAuthKeyAddCommand.php 25:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ComposerAuthImportCommand.php 55:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ComposerAuthCommand.php 54:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ChannelAuthSetCommand.php 24:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/PackageShowCommand.php 67:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 77:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ChannelAbstractCommand.php 19:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 65:8 warning $questionFactory parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 66:8 warning $choiceQuestionFactory parameter is not in order (Magento2.Annotation.MethodArguments.ParamOrder) 68:12 warning $composerHelper parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 96:11 warning Empty CATCH statement detected (Magento2.CodeAnalysis.EmptyBlock.DetectedCatch) 258:21 warning Direct throw of generic Exception is discouraged. Use context specific instead. (Magento2.Exceptions.DirectThrow.FoundDirectThrow) Console/Command/ChannelCleanCommand.php 24:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ChannelAuthCheckCommand.php 24:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ChannelEnableCommand.php 24:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ChannelDisableCommand.php 24:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Console/Command/ChannelAuthShowCommand.php 24:15 warning {@inheritdoc} does not import parameter annotation (Magento2.Annotation.MethodArguments.InheritDoc) Ui/DataProvider/Form/PackageInstallDataProvider.php 24:12 warning $request parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) 24:12 warning $installer parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Ui/Component/Listing/Columns/Links.php 12: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) 17:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 18:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Controller/Adminhtml/Package/Index.php 10:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) Controller/Adminhtml/Package/Install.php 9:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) view/adminhtml/templates/filters.phtml 4:52 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) 18:52 warning Using escapeHtml on $block is deprecated. Please use equivalent method on $escaper (Magento2.Legacy.EscapeMethodsOnBlockClass.Found) Installer/Command/CmsPage.php 134:21 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Installer/Command/CmsBlock.php 89:21 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Installer/Command/Product.php 13:12 warning Possible useless method overriding detected (Generic.CodeAnalysis.UselessOverridingMethod.Found) Installer/Command/ProductAttribute.php 72:21 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) Installer/Helper/Renderer.php 16:14 warning The use of function is_readable() is discouraged; use Magento\Framework\Filesystem\DriverInterface::isReadable() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative) 25:16 warning The use of function file_get_contents() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Installer/Helper/Text.php 13:16 warning The use of function call_user_func_array() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Installer/Helper/Serializer.php 13:8 warning $collectionFactory parameter is missing in method arguments signature (Magento2.Annotation.MethodArguments.ArgumentMissing) 15:12 warning $jsonSerializer parameter is missing in method annotation (Magento2.Annotation.MethodArguments.ArgumentMissing) Installer/Helper/Collection.php 34:17 warning The use of function call_user_func_array() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Installer/Installer.php 212:23 warning array_merge(...) is used in a loop and is a resources greedy construction. (Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge) 241:20 warning The use of function call_user_func_array() is discouraged (Magento2.Functions.DiscouragedFunction.Discouraged) Installer/ConfigReader.php 16:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 18:5 warning Visibility must be declared on all constants if your project supports PHP 7.1 or later (PSR12.Properties.ConstantVisibility.NotFound) 360:19 warning The use of function realpath() is discouraged; use Magento\Framework\Filesystem\DriverInterface::getRealPath() instead (Magento2.Functions.DiscouragedFunction.DiscouragedWithAlternative)