detain/myadmin-plugin-installer

View on GitHub
src/Installer.php

Summary

Maintainability
A
35 mins
Test Coverage

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

    public function __construct(IOInterface $io, Composer $composer, $type = 'library', Filesystem $filesystem = null, BinaryInstaller $binaryInstaller = null)
Severity: Minor
Found in src/Installer.php - About 35 mins to fix

    Missing class import via use statement (line '120', column '23').
    Open

                throw new \InvalidArgumentException('Package is not installed: '.$initial);
    Severity: Minor
    Found in src/Installer.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    Missing class import via use statement (line '139', column '23').
    Open

                throw new \InvalidArgumentException('Package is not installed: '.$package);
    Severity: Minor
    Found in src/Installer.php by phpmd

    MissingImport

    Since: 2.7.0

    Importing all external classes in a file through use statements makes them clearly visible.

    Example

    function make() {
        return new \stdClass();
    }

    Source http://phpmd.org/rules/cleancode.html#MissingImport

    There are no issues that match your filters.

    Category
    Status