GrafiteInc/FormMaker

View on GitHub
src/Fields/Bootstrap/Select.php

Summary

Maintainability
B
5 hrs
Test Coverage

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

    public static function styles($id, $options)
    {
        $color = (Str::of(config('forms.bootstrap-version'))->startsWith('5')) ? 'var(--bs-gray-400)' : 'rgba(0, 0, 0, .1)';
        $borderLight = (Str::of(config('forms.bootstrap-version'))->startsWith('5')) ? "1px solid $color !important" : "1px solid $color !important";
        $borderDark = (Str::of(config('forms.bootstrap-version'))->startsWith('5')) ? "2px solid #444 !important" : "1px solid #444 !important";
Severity: Major
Found in src/Fields/Bootstrap/Select.php - About 3 hrs to fix

    Method js has 61 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        public static function js($id, $options)
        {
            return <<<JS
            _formsjs_bootstrapSelect_addInpKeyPress = function (t, ev, id) {
                ev.stopPropagation();
    Severity: Major
    Found in src/Fields/Bootstrap/Select.php - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status