Method configure
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function configure()
{
$this->setName('patch');
$this->setDescription('Apply registered patches to current project');
Method execute
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
protected function execute(InputInterface $input, OutputInterface $output)
{
$composer = $this->getComposer();
$appIO = $this->getIO();
Missing class import via use statement (line '154', column '29'). Open
$runtimeUtils = new \Vaimo\ComposerPatches\Utils\RuntimeUtils();
- 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 '148', column '33'). Open
$bootstrapFactory = new \Vaimo\ComposerPatches\Factories\BootstrapFactory($composerContext, $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 '231', column '29'). Open
$runtimeUtils = new \Vaimo\ComposerPatches\Utils\RuntimeUtils();
- 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 '152', column '31'). Open
$compatExecutor = new \Vaimo\ComposerPatches\Compatibility\Executor();
- 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 '184', column '31'). Open
$configDefaults = new \Vaimo\ComposerPatches\Config\Defaults();
- 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 '130', column '31'). Open
$contextFactory = 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 '133', column '30'). Open
$configFactory = new \Vaimo\ComposerPatches\Factories\ConfigFactory($composerContext, array(
- 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 '150', column '31'). Open
$outputStrategy = new \Vaimo\ComposerPatches\Strategies\OutputStrategy($outputTriggers);
- 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 '155', column '30'). Open
$lockSanitizer = new \Vaimo\ComposerPatches\Repository\Lock\Sanitizer($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
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addArgument
Open
$this->addArgument(
- Exclude checks
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_NONE,
- Exclude checks
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_NONE,
- Exclude checks
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_NONE,
- Exclude checks
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
if (!$input->getOption('no-scripts')) {
- Exclude checks
Parameter $input
has undeclared type \Symfony\Component\Console\Input\InputInterface
Open
private function getOptionGraceful(InputInterface $input, $name)
- Exclude checks
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
Patch::SOURCE => $input->getOption('filter'),
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::setName
Open
$this->setName('patch');
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Call to method getArgument
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
Patch::TARGETS => $input->getArgument('targets')
- Exclude checks
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_NONE,
- Exclude checks
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_NONE,
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::setDescription
Open
$this->setDescription('Apply registered patches to current project');
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::getComposer
Open
$composer = $this->getComposer();
- Exclude checks
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
Config::PATCHER_GRACEFUL => (bool)$input->getOption('graceful')
- Exclude checks
Reference to constant VALUE_IS_ARRAY
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- Exclude checks
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_NONE,
- Exclude checks
Parameter $input
has undeclared type \Symfony\Component\Console\Input\InputInterface
Open
private function resolveActiveFilters(InputInterface $input, array $behaviourFlags)
- Exclude checks
Class extends undeclared class \Composer\Command\BaseCommand
Open
class PatchCommand extends \Composer\Command\BaseCommand
- Exclude checks
Reference to constant VALUE_OPTIONAL
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_OPTIONAL | InputOption::VALUE_IS_ARRAY,
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
return $input->hasOption($name) && $input->getOption($name);
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Call to method hasOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
return $input->hasOption($name) && $input->getOption($name);
- Exclude checks
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_NONE,
- Exclude checks
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
Config::PATCHER_FROM_SOURCE => (bool)$input->getOption('from-source'),
- Exclude checks
Reference to constant IS_ARRAY
from undeclared class \Symfony\Component\Console\Input\InputArgument
Open
InputArgument::IS_ARRAY,
- Exclude checks
Reference to constant POST_INSTALL_CMD
from undeclared class \Composer\Script\ScriptEvents
Open
$composer->getEventDispatcher()->dispatchScript(ScriptEvents::POST_INSTALL_CMD, $isDevMode);
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_NONE,
- Exclude checks
Parameter $input
has undeclared type \Symfony\Component\Console\Input\InputInterface
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
Parameter $output
has undeclared type \Symfony\Component\Console\Output\OutputInterface
Open
protected function execute(InputInterface $input, OutputInterface $output)
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::getIO
Open
$appIO = $this->getIO();
- Exclude checks
Call to method getOption
from undeclared class \Symfony\Component\Console\Input\InputInterface
Open
$isDevMode = !$input->getOption('no-dev');
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Reference to constant VALUE_NONE
from undeclared class \Symfony\Component\Console\Input\InputOption
Open
InputOption::VALUE_NONE,
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Call to undeclared method \Vaimo\ComposerPatches\Composer\Commands\PatchCommand::addOption
Open
$this->addOption(
- Exclude checks
Parameter $input
has undeclared type \Symfony\Component\Console\Input\InputInterface
Open
protected function getBehaviourFlags(InputInterface $input)
- Exclude checks