FriendsOfPHP/pickle

View on GitHub
src/Console/Command/InstallerCommand.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method configure has 56 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function configure()
    {
        parent::configure();

        $this
Severity: Major
Found in src/Console/Command/InstallerCommand.php - About 2 hrs to fix

    Method binaryInstallWindows has 39 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        protected function binaryInstallWindows($path, InputInterface $input, OutputInterface $output)
        {
            Factory::getUnzipperClassName(); // Be sure we have a way to unzip files
            $php = Engine::factory();
            $table = new Table($output);
    Severity: Minor
    Found in src/Console/Command/InstallerCommand.php - About 1 hr to fix

      Method sourceInstall has 5 arguments (exceeds 4 allowed). Consider refactoring.
      Open

          protected function sourceInstall($package, InputInterface $input, OutputInterface $output, $optionsValue = [], $force_opts = ''): bool
      Severity: Minor
      Found in src/Console/Command/InstallerCommand.php - About 35 mins to fix

        There are no issues that match your filters.

        Category
        Status