modules/proxy-plugin/src/Plugin.php
Missing class import via use statement (line '26', column '35'). Open
Open
$composerCtxFactory = new \Vaimo\ComposerPatches\Factories\ComposerContextFactory($composer);
- Read upRead up
- Exclude checks
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
Open
$packageResolver = new \Vaimo\ComposerPatches\Composer\Plugin\PackageResolver(
- Read upRead up
- Exclude checks
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
Open
$composerConfig = $composer->getConfig();
- Exclude checks
Call to method getName
from undeclared class \Composer\Package\PackageInterface
Open
Open
$this->composePath($vendorDir, $pluginPackage->getName()),
- Exclude checks
Parameter $appIO
has undeclared type \Composer\IO\IOInterface
Open
Open
public function uninstall(\Composer\Composer $composer, \Composer\IO\IOInterface $appIO)
- Exclude checks
Parameter $composer
has undeclared type \Composer\Composer
Open
Open
public function deactivate(\Composer\Composer $composer, \Composer\IO\IOInterface $appIO)
- Exclude checks
Call to method getComposer
from undeclared class \Composer\Installer\PackageEvent
Open
Open
$autoloadFile = $this->resolveAutoloadFilePath($event->getComposer());
- Exclude checks
Parameter $appIO
has undeclared type \Composer\IO\IOInterface
Open
Open
public function deactivate(\Composer\Composer $composer, \Composer\IO\IOInterface $appIO)
- Exclude checks
Parameter $composer
has undeclared type \Composer\Composer
Open
Open
public function uninstall(\Composer\Composer $composer, \Composer\IO\IOInterface $appIO)
- Exclude checks
Parameter $event
has undeclared type \Composer\Installer\PackageEvent
Open
Open
public function resetPackages(\Composer\Installer\PackageEvent $event)
- Exclude checks
Call to method getPackage
from undeclared class \Composer\Composer
Open
Open
array($composer->getPackage())
- Exclude checks
Parameter $io
has undeclared type \Composer\IO\IOInterface
Open
Open
public function activate(\Composer\Composer $composer, \Composer\IO\IOInterface $io)
- Exclude checks
Parameter $composer
has undeclared type \Composer\Composer
Open
Open
public function resolveAutoloadFilePath(\Composer\Composer $composer)
- Exclude checks
Parameter $composer
has undeclared type \Composer\Composer
Open
Open
public function activate(\Composer\Composer $composer, \Composer\IO\IOInterface $io)
- Exclude checks
Call to method getComposer
from undeclared class \Composer\Script\Event
(Did you mean class \Vaimo\ComposerPatches\Patch\Event) Open
Open
$autoloadFile = $this->resolveAutoloadFilePath($event->getComposer());
- Exclude checks
Parameter $event
has undeclared type \Composer\Script\Event
(Did you mean class \Vaimo\ComposerPatches\Patch\Event) Open
Open
public function postInstall(\Composer\Script\Event $event)
- Exclude checks
Call to method getConfig
from undeclared class \Composer\Composer
Open
Open
$composer->getConfig()->get('vendor-dir'),
- Exclude checks
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
Open
<?php
- Exclude checks