pixelfed/pixelfed

View on GitHub
app/Http/Controllers/InstallController.php

Summary

Maintainability
B
4 hrs
Test Coverage

Method createConfiguration has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    protected function createConfiguration($request)
    {
        abort_if(file_exists(base_path('.env')), 404);
        $source = base_path('.env.example');
        $target = base_path('.env');
Severity: Major
Found in app/Http/Controllers/InstallController.php - About 2 hrs to fix

    Method getRequirements has 50 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public function getRequirements()
        {
            abort_if(file_exists(base_path('.env')), 404);
            $reqs = [];
    
    
    Severity: Minor
    Found in app/Http/Controllers/InstallController.php - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status