pborreli/composer-service

View on GitHub
src/Ayaline/Bundle/ComposerBundle/Resources/public/js/ladda.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function create has 74 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function create(button) {
        if (typeof button === "undefined") {
            console.warn("Ladda button target must be defined.");
            return;
        }
Severity: Major
Found in src/Ayaline/Bundle/ComposerBundle/Resources/public/js/ladda.js - About 2 hrs to fix

    Function bind has 26 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function bind(target, options) {
            options = options || {};
            var targets = [];
            if (typeof target === "string") {
                targets = toArray(document.querySelectorAll(target));
    Severity: Minor
    Found in src/Ayaline/Bundle/ComposerBundle/Resources/public/js/ladda.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status