src/Bootstrap.php
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
\Vaimo\ComposerPatches\Composer\Context $composerContext,
\Composer\IO\IOInterface $appIO,
\Vaimo\ComposerPatches\Factories\ConfigFactory $configFactory,
\Vaimo\ComposerPatches\Interfaces\ListResolverInterface $listResolver = null,
\Vaimo\ComposerPatches\Strategies\OutputStrategy $outputStrategy = null
Missing class import via use statement (line '78', column '39'). Open
Open
$this->loaderComponents = new \Vaimo\ComposerPatches\Patch\DefinitionList\Loader\ComponentPool(
- 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 '76', column '23'). Open
Open
$logger = new \Vaimo\ComposerPatches\Logger($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 '87', column '42'). Open
Open
$this->repositoryProcessor = new \Vaimo\ComposerPatches\Repository\Processor($logger);
- 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
Doc-block of $outputStrategy
in __construct
is phpdoc param type \Vaimo\ComposerPatches\Strategies\OutputStrategy
which is not a permitted replacement of the nullable param type ?\Vaimo\ComposerPatches\Strategies\OutputStrategy
declared in the signature ('?T' should be documented as 'T|null' or '?T') Open
Open
* @param \Vaimo\ComposerPatches\Strategies\OutputStrategy $outputStrategy
- Exclude checks
Doc-block of $listResolver
in __construct
is phpdoc param type \Vaimo\ComposerPatches\Interfaces\ListResolverInterface
which is not a permitted replacement of the nullable param type ?\Vaimo\ComposerPatches\Interfaces\ListResolverInterface
declared in the signature ('?T' should be documented as 'T|null' or '?T') Open
Open
* @param \Vaimo\ComposerPatches\Interfaces\ListResolverInterface $listResolver
- Exclude checks