XoopsModules25x/smallworld

View on GitHub
assets/js/jquery.fileupload-fp.js

Summary

Maintainability
A
1 hr
Test Coverage

Function save has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            save: function (data, options) {
                // Do nothing if no processing has happened:
                if (!data.canvas) {
                    return data;
                }
Severity: Minor
Found in assets/js/jquery.fileupload-fp.js - About 1 hr to fix

    Consider simplifying this complex logical expression.
    Open

                    if (window.HTMLCanvasElement &&
                        window.HTMLCanvasElement.prototype.toBlob &&
                        ($.type(options.maxFileSize) !== 'number' ||
                            file.size < options.maxFileSize) &&
                        (!options.fileTypes ||
    Severity: Major
    Found in assets/js/jquery.fileupload-fp.js - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status