voyager-admin/voyager

View on GitHub
src/Http/Controllers/SettingsController.php

Summary

Maintainability
A
1 hr
Test Coverage
B
89%

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

    public function store(Request $request): \Illuminate\Http\Response|\Illuminate\Http\JsonResponse
    {
        // Push a fake column object to settings
        $settings = collect($request->get('settings', []))->transform(function ($setting) {
            $setting = (object) $setting;
Severity: Minor
Found in src/Http/Controllers/SettingsController.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status