XoopsModules25x/xoopsinfo

View on GitHub
phpsysinfo/js/jQuery/jquery.jgrowl.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function render has 64 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        render:         function( notification ) {
            var self = this;
            var message = notification.message;
            var o = notification.options;

Severity: Major
Found in phpsysinfo/js/jQuery/jquery.jgrowl.js - About 2 hrs to fix

    Consider simplifying this complex logical expression.
    Open

                    if ( $(this).data("jGrowl") != undefined && $(this).data("jGrowl").created != undefined && 
                         ($(this).data("jGrowl").created.getTime() + parseInt($(this).data("jGrowl").life))  < (new Date()).getTime() && 
                         $(this).data("jGrowl").sticky != true && 
                         ($(this).data("jGrowl.pause") == undefined || $(this).data("jGrowl.pause") != true) ) {
    
    
    Severity: Major
    Found in phpsysinfo/js/jQuery/jquery.jgrowl.js - About 40 mins to fix

      There are no issues that match your filters.

      Category
      Status