GrafiteInc/FormMaker

View on GitHub
src/Fields/Editor.php

Summary

Maintainability
B
4 hrs
Test Coverage

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

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

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

        public static function styles($id, $options)
        {
            $themes = [];
    
            $themes['light'] = <<<CSS
    Severity: Major
    Found in src/Fields/Editor.php - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status