vaimo/composer-patches

View on GitHub
src/Package/PatchApplier/ItemProcessor.php

Summary

Maintainability
A
35 mins
Test Coverage

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

        \Composer\EventDispatcher\EventDispatcher $eventDispatcher,
        \Vaimo\ComposerPatches\Package\InfoResolver $packageInfoResolver,
        \Vaimo\ComposerPatches\Interfaces\PatchFailureHandlerInterface $failureHandler,
        \Vaimo\ComposerPatches\Patch\File\Applier $fileApplier,
        \Vaimo\ComposerPatches\Logger $logger
Severity: Minor
Found in src/Package/PatchApplier/ItemProcessor.php - About 35 mins to fix

    Parameter $package has undeclared type \Composer\Package\PackageInterface
    Open

        private function dispatchEventForPackagePatch($name, PackageInterface $package, array $patch)

    Property \Vaimo\ComposerPatches\Package\PatchApplier\ItemProcessor->eventDispatcher has undeclared type \Composer\EventDispatcher\EventDispatcher
    Open

        private $eventDispatcher;

    Parameter $package has undeclared type \Composer\Package\PackageInterface
    Open

        public function processFileInfo(PackageInterface $package, array $info)

    Parameter $eventDispatcher has undeclared type \Composer\EventDispatcher\EventDispatcher
    Open

        public function __construct(

    Call to method dispatch from undeclared class \Composer\EventDispatcher\EventDispatcher
    Open

            $this->eventDispatcher->dispatch(
    Severity: Critical
    Found in src/Package/PatchApplier/ItemProcessor.php by phan

    There are no issues that match your filters.

    Category
    Status