GrafiteInc/FormMaker

View on GitHub
src/Fields/Toggled.php

Summary

Maintainability
A
2 hrs
Test Coverage

Method styles has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function styles($id, $options)
    {
        $colorVariable = (Str::of(config('forms.bootstrap-version'))->startsWith('5')) ? '--bs-primary' : '--primary';
        $position = (Str::of(config('forms.bootstrap-version'))->startsWith('5')) ? 'relative' : 'absolute';
        $labelSpacing = (Str::of(config('forms.bootstrap-version'))->startsWith('5')) ? ".form-check-label[for=\"{$id}\"] {margin-left: -24px;}" : '';
Severity: Major
Found in src/Fields/Toggled.php - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status