antaresproject/core

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

Summary

Maintainability
A
2 hrs
Test Coverage

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

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

            if($this->componentsRepository->isRequired($name)) {
Severity: Minor
Found in src/components/extension/src/Processors/Uninstaller.php - About 1 hr to fix

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

            ComposerHandler $composerHandler,
            Container $container,
            Dispatcher $dispatcher,
            Kernel $kernel,
            ExtensionsRepository $extensionsRepository,
    Severity: Minor
    Found in src/components/extension/src/Processors/Uninstaller.php - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status