vaimo/composer-patches

View on GitHub
modules/proxy-plugin/src/Plugin.php

Summary

Maintainability
A
0 mins
Test Coverage

Missing class import via use statement (line '26', column '35').
Open

        $composerCtxFactory = new \Vaimo\ComposerPatches\Factories\ComposerContextFactory($composer);
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.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 '83', column '32').
Open

        $packageResolver = new \Vaimo\ComposerPatches\Composer\Plugin\PackageResolver(
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.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

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

        $composerConfig = $composer->getConfig();
Severity: Critical
Found in modules/proxy-plugin/src/Plugin.php by phan

Call to method getName from undeclared class \Composer\Package\PackageInterface
Open

            $this->composePath($vendorDir, $pluginPackage->getName()),
Severity: Critical
Found in modules/proxy-plugin/src/Plugin.php by phan

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

    public function uninstall(\Composer\Composer $composer, \Composer\IO\IOInterface $appIO)
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.php by phan

Parameter $composer has undeclared type \Composer\Composer
Open

    public function deactivate(\Composer\Composer $composer, \Composer\IO\IOInterface $appIO)
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.php by phan

Call to method getComposer from undeclared class \Composer\Installer\PackageEvent
Open

        $autoloadFile = $this->resolveAutoloadFilePath($event->getComposer());
Severity: Critical
Found in modules/proxy-plugin/src/Plugin.php by phan

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

    public function deactivate(\Composer\Composer $composer, \Composer\IO\IOInterface $appIO)
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.php by phan

Parameter $composer has undeclared type \Composer\Composer
Open

    public function uninstall(\Composer\Composer $composer, \Composer\IO\IOInterface $appIO)
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.php by phan

Parameter $event has undeclared type \Composer\Installer\PackageEvent
Open

    public function resetPackages(\Composer\Installer\PackageEvent $event)
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.php by phan

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

            array($composer->getPackage())
Severity: Critical
Found in modules/proxy-plugin/src/Plugin.php by phan

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

    public function activate(\Composer\Composer $composer, \Composer\IO\IOInterface $io)
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.php by phan

Parameter $composer has undeclared type \Composer\Composer
Open

    public function resolveAutoloadFilePath(\Composer\Composer $composer)
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.php by phan

Parameter $composer has undeclared type \Composer\Composer
Open

    public function activate(\Composer\Composer $composer, \Composer\IO\IOInterface $io)
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.php by phan

Call to method getComposer from undeclared class \Composer\Script\Event (Did you mean class \Vaimo\ComposerPatches\Patch\Event)
Open

        $autoloadFile = $this->resolveAutoloadFilePath($event->getComposer());
Severity: Critical
Found in modules/proxy-plugin/src/Plugin.php by phan

Parameter $event has undeclared type \Composer\Script\Event (Did you mean class \Vaimo\ComposerPatches\Patch\Event)
Open

    public function postInstall(\Composer\Script\Event $event)
Severity: Minor
Found in modules/proxy-plugin/src/Plugin.php by phan

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

            $composer->getConfig()->get('vendor-dir'),
Severity: Critical
Found in modules/proxy-plugin/src/Plugin.php by phan

A file should declare new symbols (classes, functions, constants, etc.) and cause no other side effects, or it should execute logic with side effects, but should not do both. The first symbol is defined on line 13 and the first side effect is on line 8.
Open

<?php

There are no issues that match your filters.

Category
Status