src/Factories/PatchesLoaderFactory.php
Method create
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
public function create(LoaderComponents $loaderComponentsPool, PluginConfig $pluginConfig, $devMode = false)
{
$installationManager = $this->composer->getInstallationManager();
$rootPackage = $this->composer->getPackage();
Missing class import via use statement (line '95', column '36'). Open
Open
$configReaderFactory = new \Vaimo\ComposerPatches\Factories\PatcherConfigReaderFactory(
- 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 '113', column '20'). Open
Open
return new \Vaimo\ComposerPatches\Patch\DefinitionList\Loader(
- 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 '114', column '17'). Open
Open
new \Vaimo\ComposerPatches\Package\Collector(
- 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 '109', column '35'). Open
Open
$srcResolverFactory = new \Vaimo\ComposerPatches\Factories\SourcesResolverFactory(
- 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
Property \Vaimo\ComposerPatches\Factories\PatchesLoaderFactory->composer
has undeclared type \Composer\Composer
Open
Open
private $composer;
- Exclude checks
Call to method getInstallationManager
from undeclared class \Composer\Composer
Open
Open
$installationManager = $this->composer->getInstallationManager();
- Exclude checks
Parameter $composer
has undeclared type \Composer\Composer
Open
Open
public function __construct(
- Exclude checks
Call to method getPackage
from undeclared class \Composer\Composer
Open
Open
$rootPackage = $this->composer->getPackage();
- Exclude checks