GrafiteInc/FormMaker

View on GitHub
src/Fields/AutoSuggestSelect.php

Summary

Maintainability
B
6 hrs
Test Coverage

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

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

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

        public static function styles($id, $options)
        {
            return <<<CSS
    .form-autocomplete {
        position: relative;
    Severity: Minor
    Found in src/Fields/AutoSuggestSelect.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status