src/Patch/DefinitionList/Loader/ComponentPool.php
Method getList
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function getList(PluginConfig $pluginConfig)
{
$patcherConfig = $pluginConfig->getPatcherConfig();
$composer = $this->composerContext->getLocalComposer();
$composerConfig = clone $composer->getConfig();
Missing class import via use statement (line '88', column '37'). Open
Open
$composerDependencies = new \Vaimo\ComposerPatches\Compatibility\DependenciesFactory();
- 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 '111', column '32'). Open
Open
$consoleSilencer = new \Vaimo\ComposerPatches\Console\Silencer($this->appIO);
- 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 '104', column '36'). Open
Open
$composerConfigUtils = new \Vaimo\ComposerPatches\Utils\ComposerConfigUtils();
- 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 '81', column '26'). Open
Open
$cache = new \Composer\Cache(
- 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 '97', column '36'). Open
Open
$packageInfoResolver = new \Vaimo\ComposerPatches\Package\InfoResolver(
- 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 '106', 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
Missing class import via use statement (line '101', column '32'). Open
Open
$configExtractor = new \Vaimo\ComposerPatches\Package\ConfigExtractors\VendorConfigExtractor(
- 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
Parameter $appIO
has undeclared type \Composer\IO\IOInterface
Open
Open
public function __construct(
- Exclude checks
Argument 1 (appIO)
is \Composer\IO\IOInterface
but \Vaimo\ComposerPatches\Console\Silencer::__construct()
takes \Composer\IO\ConsoleIO
defined at /code/src/Console/Silencer.php:22
Open
Open
$consoleSilencer = new \Vaimo\ComposerPatches\Console\Silencer($this->appIO);
- Exclude checks
Property \Vaimo\ComposerPatches\Patch\DefinitionList\Loader\ComponentPool->appIO
has undeclared type \Composer\IO\IOInterface
Open
Open
private $appIO;
- Exclude checks
Call to method getConfig
from undeclared class \Composer\Composer
Open
Open
$composerConfig = clone $composer->getConfig();
- Exclude checks
Call to method getInstallationManager
from undeclared class \Composer\Composer
Open
Open
$installationManager = $composer->getInstallationManager();
- Exclude checks
Call to method getPackage
from undeclared class \Composer\Composer
Open
Open
$rootPackage = $composer->getPackage();
- Exclude checks
Call to method __construct
from undeclared class \Composer\Cache
Open
Open
$cache = new \Composer\Cache(
- Exclude checks
Call to method getPackage
from undeclared class \Composer\Composer
Open
Open
array($composer->getPackage())
- Exclude checks