antaresproject/core

View on GitHub
src/components/extension/src/Processors/Installer.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method run has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function run(OperationHandlerContract $handler, ExtensionContract $extension, array $flags = [])
    {
        try {
            $name = $extension->getPackage()->getName();

Severity: Minor
Found in src/components/extension/src/Processors/Installer.php - About 1 hr to fix

    Method __construct has 8 arguments (exceeds 4 allowed). Consider refactoring.
    Open

        ComposerHandler $composerHandler, ExtensionValidator $extensionValidator, Container $container, Dispatcher $dispatcher, Kernel $kernel, ExtensionsRepository $extensionsRepository, SettingsFactory $settingsFactory, ComponentsRepository $componentsRepository
    Severity: Major
    Found in src/components/extension/src/Processors/Installer.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status