GrafiteInc/FormMaker

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

Summary

Maintainability
C
7 hrs
Test Coverage

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

    public static function js($id, $options)
    {
        return <<<JS
        _formsjs_bootstrapCustomSelectField = function (element) {
            if (! element.getAttribute('data-formsjs-rendered')) {
Severity: Major
Found in src/Fields/Bootstrap/SimpleSelect.php - About 3 hrs to fix

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

        public static function styles($id, $options)
        {
            return <<<CSS
    .bs-select {
        position: relative;
    Severity: Major
    Found in src/Fields/Bootstrap/SimpleSelect.php - About 3 hrs to fix

      There are no issues that match your filters.

      Category
      Status