vaimo/composer-patches

View on GitHub
src/Compatibility/Executor.php

Summary

Maintainability
A
50 mins
Test Coverage

Method downloadPackage has 7 arguments (exceeds 4 allowed). Consider refactoring.
Open

    public function downloadPackage($downloader, $package, $source, $destDir, $errorHandler, &$patchData, &$errors)
Severity: Major
Found in src/Compatibility/Executor.php - About 50 mins to fix

    Call to method install from undeclared class \Composer\Installer\InstallationManager
    Open

                return $installationManager->install($repository, $installOperation);
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Call to method getInstaller from undeclared class \Composer\Installer\InstallationManager
    Open

                    $installationManager->getInstaller($package->getType())
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Reference to constant VERSION from undeclared class \Composer\Composer
    Open

            if (version_compare(\Composer\Composer::VERSION, '2.0', '<')) {
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Reference to constant VERSION from undeclared class \Composer\Composer
    Open

            if (version_compare(\Composer\Composer::VERSION, '2.0', '<')) {
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Reference to constant VERSION from undeclared class \Composer\Composer
    Open

            if (version_compare(\Composer\Composer::VERSION, '2.0', '<')) {
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Parameter $installOperation has undeclared type \Composer\DependencyResolver\Operation\InstallOperation
    Open

        public function processReinstallOperation(
    Severity: Minor
    Found in src/Compatibility/Executor.php by phan

    Call to method download from undeclared class \Composer\Downloader\FileDownloader
    Open

                $downloader->download($package, $destDir, false);
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Parameter $uninstallOperation has undeclared type \Composer\DependencyResolver\Operation\UninstallOperation
    Open

        public function processReinstallOperation(
    Severity: Minor
    Found in src/Compatibility/Executor.php by phan

    Parameter $composer has undeclared type \Composer\Composer
    Open

        public function waitDownloadCompletion(\Composer\Composer $composer)
    Severity: Minor
    Found in src/Compatibility/Executor.php by phan

    Call to method getLoop from undeclared class \Composer\Composer
    Open

            $composer->getLoop()->getHttpDownloader()->wait();
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Parameter $repository has undeclared type \Composer\Repository\WritableRepositoryInterface
    Open

        public function processReinstallOperation(
    Severity: Minor
    Found in src/Compatibility/Executor.php by phan

    Call to method getPackage from undeclared class \Composer\DependencyResolver\Operation\InstallOperation
    Open

                    $package = $installOperation->getPackage();
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Call to method getLoop from undeclared class \Composer\Composer
    Open

            $composer->getLoop()->wait($processes);
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Call to method uninstall from undeclared class \Composer\Installer\InstallationManager
    Open

            return $installationManager
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Reference to constant VERSION from undeclared class \Composer\Composer
    Open

            if (version_compare(\Composer\Composer::VERSION, '2.0', '<')) {
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Reference to constant VERSION from undeclared class \Composer\Composer
    Open

            if (version_compare(\Composer\Composer::VERSION, '2.0', '<')) {
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Call to method install from undeclared class \Composer\Installer\InstallationManager
    Open

                            $installationManager->install($repository, $installOperation);
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Reference to constant VERSION from undeclared class \Composer\Composer
    Open

            if (version_compare(\Composer\Composer::VERSION, '2.0', '<')) {
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Call to method download from undeclared class \Composer\Downloader\FileDownloader
    Open

            $resultPromise = $downloader->download($package, $destDir, null, false);
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Parameter $composer has undeclared type \Composer\Composer
    Open

        public function waitForCompletion(\Composer\Composer $composer, array $processes)
    Severity: Minor
    Found in src/Compatibility/Executor.php by phan

    Checking instanceof against undeclared class \Composer\Downloader\TransportException
    Open

                    if (!$exception instanceof \Composer\Downloader\TransportException) {
    Severity: Critical
    Found in src/Compatibility/Executor.php by phan

    Parameter $installationManager has undeclared type \Composer\Installer\InstallationManager
    Open

        public function processReinstallOperation(
    Severity: Minor
    Found in src/Compatibility/Executor.php by phan

    There are no issues that match your filters.

    Category
    Status