fisharebest/webtrees

View on GitHub
app/Services/ServerCheckService.php

Summary

Maintainability
A
1 hr
Test Coverage

Method databaseDriverErrors has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function databaseDriverErrors(string $driver): Collection
    {
        switch ($driver) {
            case DB::MYSQL:
                return Collection::make([
Severity: Minor
Found in app/Services/ServerCheckService.php - About 1 hr to fix

    Avoid too many return statements within this method.
    Open

                    return new Collection();
    Severity: Major
    Found in app/Services/ServerCheckService.php - About 30 mins to fix

      There are no issues that match your filters.

      Category
      Status