pixelfed/pixelfed

View on GitHub
app/Console/Commands/Installer.php

Summary

Maintainability
D
1 day
Test Coverage

File Installer.php has 423 lines of code (exceeds 250 allowed). Consider refactoring.
Open

<?php

namespace App\Console\Commands;

use Illuminate\Console\Command;
Severity: Minor
Found in app/Console/Commands/Installer.php - About 6 hrs to fix

    Installer has 27 functions (exceeds 20 allowed). Consider refactoring.
    Open

    class Installer extends Command
    {
        /**
         * The name and signature of the console command.
         *
    Severity: Minor
    Found in app/Console/Commands/Installer.php - About 3 hrs to fix

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

          protected function mediaSettings()
          {
              $this->line('');
              $this->info('Media Settings:');
              $optimize_media = $this->choice('Optimize media uploads? Requires jpegoptim and other dependencies!', ['false', 'true'], 1);
      Severity: Minor
      Found in app/Console/Commands/Installer.php - About 1 hr to fix

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

            protected function installerSteps()
            {
                $this->envCheck();
                $this->envCreate();
                $this->installType();
        Severity: Minor
        Found in app/Console/Commands/Installer.php - About 1 hr to fix

          Method checkPHPRequiredDependencies has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              protected function checkPHPRequiredDependencies()
              {
                  $this->line(' ');
                  $this->info('Checking for Required PHP Extensions...');
          
          
          Severity: Minor
          Found in app/Console/Commands/Installer.php - About 1 hr to fix

            There are no issues that match your filters.

            Category
            Status