Method execute
has 389 lines of code (exceeds 25 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output): int {
try {
$io = new SymfonyStyle($input, $output);
$io->text(
Function execute
has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output): int {
try {
$io = new SymfonyStyle($input, $output);
$io->text(
File BuilderCommand.php
has 463 lines of code (exceeds 250 allowed). Consider refactoring.
<?php
declare(strict_types = 1);
namespace App\Console\Build;
Method execute
has 102 lines of code (exceeds 25 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output): int {
try {
$io = new SymfonyStyle($input, $output);
$io->text(
Method execute
has 78 lines of code (exceeds 25 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output): int {
try {
$io = new SymfonyStyle($input, $output);
$io->text(
Extension
has 25 functions (exceeds 20 allowed). Consider refactoring.
final class Extension {
private string $name;
private string $summary = '';
private bool $disabled = false;
private bool $pecl = true;
Method execute
has 65 lines of code (exceeds 25 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output): int {
try {
$io = new SymfonyStyle($input, $output);
$io->text(
Function generate
has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
public function generate(): Generator {
$extList = [$this->extName];
if ($this->extName === self::ANY) {
$extList = $this->config->getExtensionList();
}
Method configure
has 40 lines of code (exceeds 25 allowed). Consider refactoring.
protected function configure(): void {
$this
->setDescription('Execute a build task from the job queue')
->addOption(
'sleep',
Method generate
has 33 lines of code (exceeds 25 allowed). Consider refactoring.
public function generate(): Generator {
$extList = [$this->extName];
if ($this->extName === self::ANY) {
$extList = $this->config->getExtensionList();
}
Function execute
has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output): int {
try {
$io = new SymfonyStyle($input, $output);
$io->text(
Function fromArray
has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
public static function fromArray(string $name, array $options = []): self {
$ext = new Extension($name);
if (isset($options['disabled']) === true && $options['disabled'] === true) {
$ext->disable();
}
Method __construct
has 5 arguments (exceeds 4 allowed). Consider refactoring.
Config $config,
string $extName,
string $version,
string $phpVersion,
string $osName
Avoid too many return
statements within this method.
return Command::SUCCESS;
Function execute
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output): int {
try {
$io = new SymfonyStyle($input, $output);
$io->text(
Function execute
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
protected function execute(InputInterface $input, OutputInterface $output): int {
try {
$io = new SymfonyStyle($input, $output);
$io->text(