voyager-admin/voyager

View on GitHub
src/Traits/Bread/Saveable.php

Summary

Maintainability
A
1 hr
Test Coverage
F
45%

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

    public function updateStoreData(Collection $formfields, mixed $data, mixed $model, bool $update = true): mixed
    {
        $formfields->each(function ($formfield) use ($data, &$model, $update) {
            $value = $data[$formfield->column->column] ?? '';

Severity: Minor
Found in src/Traits/Bread/Saveable.php - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status