vaimo/composer-patches

View on GitHub
src/Bootstrap.php

Summary

Maintainability
A
35 mins
Test Coverage

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

        \Vaimo\ComposerPatches\Composer\Context $composerContext,
        \Composer\IO\IOInterface $appIO,
        \Vaimo\ComposerPatches\Factories\ConfigFactory $configFactory,
        \Vaimo\ComposerPatches\Interfaces\ListResolverInterface $listResolver = null,
        \Vaimo\ComposerPatches\Strategies\OutputStrategy $outputStrategy = null
Severity: Minor
Found in src/Bootstrap.php - About 35 mins to fix

    Missing class import via use statement (line '78', column '39').
    Open

            $this->loaderComponents = new \Vaimo\ComposerPatches\Patch\DefinitionList\Loader\ComponentPool(
    Severity: Minor
    Found in src/Bootstrap.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 '76', column '23').
    Open

            $logger = new \Vaimo\ComposerPatches\Logger($appIO);
    Severity: Minor
    Found in src/Bootstrap.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 '87', column '42').
    Open

            $this->repositoryProcessor = new \Vaimo\ComposerPatches\Repository\Processor($logger);
    Severity: Minor
    Found in src/Bootstrap.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

    Parameter $appIO has undeclared type \Composer\IO\IOInterface
    Open

        public function __construct(
    Severity: Minor
    Found in src/Bootstrap.php by phan

    Doc-block of $outputStrategy in __construct is phpdoc param type \Vaimo\ComposerPatches\Strategies\OutputStrategy which is not a permitted replacement of the nullable param type ?\Vaimo\ComposerPatches\Strategies\OutputStrategy declared in the signature ('?T' should be documented as 'T|null' or '?T')
    Open

         * @param \Vaimo\ComposerPatches\Strategies\OutputStrategy $outputStrategy
    Severity: Minor
    Found in src/Bootstrap.php by phan

    Doc-block of $listResolver in __construct is phpdoc param type \Vaimo\ComposerPatches\Interfaces\ListResolverInterface which is not a permitted replacement of the nullable param type ?\Vaimo\ComposerPatches\Interfaces\ListResolverInterface declared in the signature ('?T' should be documented as 'T|null' or '?T')
    Open

         * @param \Vaimo\ComposerPatches\Interfaces\ListResolverInterface $listResolver
    Severity: Minor
    Found in src/Bootstrap.php by phan

    There are no issues that match your filters.

    Category
    Status