flavioheleno/php-ext.com

View on GitHub

Showing 16 of 28 total issues

Method execute has 389 lines of code (exceeds 25 allowed). Consider refactoring.
Open

protected function execute(InputInterface $input, OutputInterface $output): int {
try {
// i/o styling
$io = new SymfonyStyle($input, $output);
$io->text(
Severity: Major
Found in src/Console/Build/BuilderCommand.php - About 1 day to fix

    Function execute has a Cognitive Complexity of 47 (exceeds 5 allowed). Consider refactoring.
    Open

    protected function execute(InputInterface $input, OutputInterface $output): int {
    try {
    // i/o styling
    $io = new SymfonyStyle($input, $output);
    $io->text(
    Severity: Minor
    Found in src/Console/Build/BuilderCommand.php - About 7 hrs to fix

    File BuilderCommand.php has 463 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    <?php
    declare(strict_types = 1);
     
    namespace App\Console\Build;
     
     
    Severity: Minor
    Found in src/Console/Build/BuilderCommand.php - About 7 hrs to fix

      Method execute has 102 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      protected function execute(InputInterface $input, OutputInterface $output): int {
      try {
      // i/o styling
      $io = new SymfonyStyle($input, $output);
      $io->text(
      Severity: Major
      Found in src/Console/Build/AddCommand.php - About 4 hrs to fix

        Method execute has 78 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        protected function execute(InputInterface $input, OutputInterface $output): int {
        try {
        // i/o styling
        $io = new SymfonyStyle($input, $output);
        $io->text(
        Severity: Major
        Found in src/Console/Maintenance/ClearDanglingCommand.php - About 3 hrs to fix

          Extension has 25 functions (exceeds 20 allowed). Consider refactoring.
          Open

          final class Extension {
          private string $name;
          private string $summary = '';
          private bool $disabled = false;
          private bool $pecl = true;
          Severity: Minor
          Found in src/Settings/Extension.php - About 2 hrs to fix

            Method execute has 65 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            protected function execute(InputInterface $input, OutputInterface $output): int {
            try {
            // i/o styling
            $io = new SymfonyStyle($input, $output);
            $io->text(
            Severity: Major
            Found in src/Console/Build/StatusCommand.php - About 2 hrs to fix

              Function generate has a Cognitive Complexity of 14 (exceeds 5 allowed). Consider refactoring.
              Open

              public function generate(): Generator {
              $extList = [$this->extName];
              if ($this->extName === self::ANY) {
              $extList = $this->config->getExtensionList();
              }
              Severity: Minor
              Found in src/Utils/TagGenerator.php - About 1 hr to fix

              Method configure has 40 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              protected function configure(): void {
              $this
              ->setDescription('Execute a build task from the job queue')
              ->addOption(
              'sleep',
              Severity: Minor
              Found in src/Console/Build/BuilderCommand.php - About 1 hr to fix

                Method generate has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                public function generate(): Generator {
                $extList = [$this->extName];
                if ($this->extName === self::ANY) {
                $extList = $this->config->getExtensionList();
                }
                Severity: Minor
                Found in src/Utils/TagGenerator.php - About 1 hr to fix

                  Function execute has a Cognitive Complexity of 9 (exceeds 5 allowed). Consider refactoring.
                  Open

                  protected function execute(InputInterface $input, OutputInterface $output): int {
                  try {
                  // i/o styling
                  $io = new SymfonyStyle($input, $output);
                  $io->text(
                  Severity: Minor
                  Found in src/Console/Build/AddCommand.php - About 55 mins to fix

                  Function fromArray has a Cognitive Complexity of 8 (exceeds 5 allowed). Consider refactoring.
                  Open

                  public static function fromArray(string $name, array $options = []): self {
                  $ext = new Extension($name);
                  if (isset($options['disabled']) === true && $options['disabled'] === true) {
                  $ext->disable();
                  }
                  Severity: Minor
                  Found in src/Settings/Extension.php - About 45 mins to fix

                  Method __construct has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                  Config $config,
                  string $extName,
                  string $version,
                  string $phpVersion,
                  string $osName
                  Severity: Minor
                  Found in src/Utils/TagGenerator.php - About 35 mins to fix

                    Avoid too many return statements within this method.
                    Open

                    return Command::SUCCESS;
                    Severity: Major
                    Found in src/Console/Build/BuilderCommand.php - About 30 mins to fix

                      Function execute has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                      Open

                      protected function execute(InputInterface $input, OutputInterface $output): int {
                      try {
                      // i/o styling
                      $io = new SymfonyStyle($input, $output);
                      $io->text(
                      Severity: Minor
                      Found in src/Console/Build/StatusCommand.php - About 25 mins to fix

                      Function execute has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
                      Open

                      protected function execute(InputInterface $input, OutputInterface $output): int {
                      try {
                      // i/o styling
                      $io = new SymfonyStyle($input, $output);
                      $io->text(
                      Severity: Minor
                      Found in src/Console/Maintenance/ClearDanglingCommand.php - About 25 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language