XoopsModules25x/xoopsinfo

View on GitHub

Showing 1,065 of 16,781 total issues

Function getHWDevice has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $("Hardware " + type + " Device", xml).each(function getHWDevice(deviceId) {
        var name = "", count = 0, capacity = 0, manufacturer = "", product = "", serial = "", devcoreposition = 0;

        devicecount++;
        name = $(this).attr("Name");
Severity: Minor
Found in phpsysinfo/js/phpSysInfo/phpsysinfo.js - About 1 hr to fix

    Function formatBPS has 29 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function formatBPS(bps) {
        var show = "";
    
        if (bps > Math.pow(1000, 5)) {
            show += round(bps / Math.pow(1000, 5), 2);
    Severity: Minor
    Found in phpsysinfo/js/phpSysInfo/phpsysinfo_bootstrap.js - About 1 hr to fix

      Function buildblocks has 29 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              success: function buildblocks(xml) {
                  if ((typeof(initiate) === 'boolean') && (initiate === true)) {
                      populateErrors(xml);
                  }
      
      
      Severity: Minor
      Found in phpsysinfo/js/phpSysInfo/phpsysinfo.js - About 1 hr to fix

        Function html has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            html: function( value ) {
                return access( this, function( value ) {
                    var elem = this[ 0 ] || {},
                        i = 0,
                        l = this.length;
        Severity: Minor
        Found in phpsysinfo/js/jQuery/jquery.js - About 1 hr to fix

          Function 7 has 29 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          },{"../lib/lodash.js":7,"./helpers":5}],7:[function(require,module,exports){
           var _ = {};
          
          _.toString = Object.prototype.toString;
          
          
          Severity: Minor
          Found in phpsysinfo/js/vendor/transparency.js - About 1 hr to fix

            Function raid_populate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            function raid_populate(xml) {
                $("#Plugin_RaidTable").empty();
                $("#Plugin_RaidTable").append("<tbody>");
                var arr = $("Plugins Plugin_Raid Raid", xml);
                arr.each(function raid_getdevice(id) {
            Severity: Minor
            Found in phpsysinfo/plugins/raid/js/raid.js - About 1 hr to fix

              Function hyperv_buildTable has 29 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function hyperv_buildTable() {
                  var html = "";
              
                  html += "<div style=\"overflow-x:auto;\">\n";
                  html += "  <table id=\"Plugin_HyperVTable\" style=\"border-collapse:collapse;\">\n";
              Severity: Minor
              Found in phpsysinfo/plugins/hyperv/js/hyperv.js - About 1 hr to fix

                Function pingtest_buildTable has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                function pingtest_buildTable() {
                    var html = "";
                
                    html += "<div style=\"overflow-x:auto;\">\n";
                    html += "  <table id=\"Plugin_PingTestTable\" style=\"border-collapse:collapse;\">\n";
                Severity: Minor
                Found in phpsysinfo/plugins/pingtest/js/pingtest.js - About 1 hr to fix

                  Function smart_populate has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  function smart_populate(xml) {
                      var name = "", columns = [];
                      smart_table.fnClearTable();
                  
                      // Get datas that the user want to be displayed
                  Severity: Minor
                  Found in phpsysinfo/plugins/smart/js/smart.js - About 1 hr to fix

                    Function psstatus_buildTable has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    function psstatus_buildTable() {
                        var html = "";
                    
                        html += "<div style=\"overflow-x:auto;\">\n";
                        html += "  <table id=\"Plugin_PSStatusTable\" style=\"border-collapse:collapse;\">\n";
                    Severity: Minor
                    Found in phpsysinfo/plugins/psstatus/js/psstatus.js - About 1 hr to fix

                      Function renderValues has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                        Instance.prototype.renderValues = chainable(function(model, children) {
                          var element, key, value, _results;
                          if (_.isElement(model) && (element = this.elements[0])) {
                            return element.empty().el.appendChild(model);
                          } else if (typeof model === 'object') {
                      Severity: Minor
                      Found in phpsysinfo/js/vendor/transparency.js - About 1 hr to fix

                        Function getEmValue has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                                getEmValue = function () {
                                    var ret,
                                        div = doc.createElement('div'),
                                        body = doc.body,
                                        originalHTMLFontSize = docElem.style.fontSize,
                        Severity: Minor
                        Found in phpsysinfo/js/vendor/bootstrap-ie8.js - About 1 hr to fix

                          Method _info has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                             private function _info()
                              {
                                  if (empty($this->_output)) {
                                      return;
                                  }
                          Severity: Minor
                          Found in phpsysinfo/includes/ups/class.pmset.inc.php - About 1 hr to fix

                            Method _trace has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private function _trace($strMessage)
                                {
                                    $arrTrace = array_reverse(debug_backtrace());
                                    $strFunc = '';
                                    $strBacktrace = htmlspecialchars($strMessage)."\n\n";
                            Severity: Minor
                            Found in phpsysinfo/includes/error/class.PSI_Error.inc.php - About 1 hr to fix

                              Method readReg has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  public static function readReg($reg, $strName, &$strBuffer, $booErrorRep = true)
                                  {
                                      $strBuffer = '';
                                      if ($reg === false) {
                                          $last = strrpos($strName, "\\");
                              Severity: Minor
                              Found in phpsysinfo/includes/class.CommonFunctions.inc.php - About 1 hr to fix

                                Function off has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    off: function( types, selector, fn ) {
                                        var handleObj, type;
                                        if ( types && types.preventDefault && types.handleObj ) {
                                
                                            // ( event )  dispatched jQuery.Event
                                Severity: Minor
                                Found in phpsysinfo/js/jQuery/jquery.js - About 1 hr to fix

                                  Function finish has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      finish: function( type ) {
                                          if ( type !== false ) {
                                              type = type || "fx";
                                          }
                                          return this.each( function() {
                                  Severity: Minor
                                  Found in phpsysinfo/js/jQuery/jquery.js - About 1 hr to fix

                                    Function fix has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                        fix: function( event ) {
                                            if ( event[ jQuery.expando ] ) {
                                                return event;
                                            }
                                    
                                    
                                    Severity: Minor
                                    Found in phpsysinfo/js/jQuery/jquery.js - About 1 hr to fix

                                      Function addClass has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          addClass: function( value ) {
                                              var classes, elem, cur, curValue, clazz, j, finalValue,
                                                  i = 0;
                                      
                                              if ( jQuery.isFunction( value ) ) {
                                      Severity: Minor
                                      Found in phpsysinfo/js/jQuery/jquery.js - About 1 hr to fix

                                        Method _memory has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                                        Open

                                            private function _memory()
                                            {
                                                if (CommonFunctions::rfts('/proc/meminfo', $bufr)) {
                                                    $bufe = preg_split("/\n/", $bufr, -1, PREG_SPLIT_NO_EMPTY);
                                                    foreach ($bufe as $buf) {
                                        Severity: Minor
                                        Found in phpsysinfo/includes/os/class.HPUX.inc.php - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language