pixelfed/pixelfed

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

Summary

Maintainability
A
3 hrs
Test Coverage

Method handle has 51 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function handle()
    {
        $enabled = (bool) config_cache('pixelfed.cloud_storage');
        if(!$enabled) {
            $this->error('Cloud storage not enabled. Exiting...');
Severity: Major
Found in app/Console/Commands/CloudMediaMigrate.php - About 2 hrs to fix

    Avoid too many return statements within this method.
    Open

            return Command::SUCCESS;
    Severity: Major
    Found in app/Console/Commands/CloudMediaMigrate.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

                              return;
      Severity: Major
      Found in app/Console/Commands/CloudMediaMigrate.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                                return;
        Severity: Major
        Found in app/Console/Commands/CloudMediaMigrate.php - About 30 mins to fix

          There are no issues that match your filters.

          Category
          Status