GrafiteInc/FormMaker

View on GitHub
src/Fields/AutoSuggest.php

Summary

Maintainability
B
4 hrs
Test Coverage

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

    public static function js($id, $options)
    {
        return <<<JS
        _formsjs_autoSuggestField = function (element) {
            if (! element.getAttribute('data-formsjs-rendered')) {
Severity: Major
Found in src/Fields/AutoSuggest.php - About 3 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/AutoSuggest.php - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status