XoopsModules25x/xoopsinfo

View on GitHub

Showing 1,065 of 16,781 total issues

Function renderPlugin_hyperv has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function renderPlugin_hyperv(data) {

    var directives = {
        State1: {
            text: function () {
Severity: Minor
Found in phpsysinfo/plugins/hyperv/js/hyperv_bootstrap.js - About 1 hr to fix

    Method _fans has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        private function _fans()
        {
            foreach ($this->_lines as $line) {
                $buffer = preg_split("/\s*\|\s*/", $line);
                if (isset($buffer[2]) && $buffer[2] == "Fan"
    Severity: Minor
    Found in phpsysinfo/includes/mb/class.ipmiutil.inc.php - About 1 hr to fix

      Method __construct has 27 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          public function __construct()
          {
              parent::__construct();
              switch (defined('PSI_SENSOR_MBMON_ACCESS')?strtolower(PSI_SENSOR_MBMON_ACCESS):'command') {
              case 'tcp':
      Severity: Minor
      Found in phpsysinfo/includes/mb/class.mbmon.inc.php - About 1 hr to fix

        Method _network has 27 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

            private function _network()
            {
                if (CommonFunctions::executeProgram('ifconfig', '', $bufr, PSI_DEBUG)) {
                    $lines = preg_split("/\n/", $bufr, -1, PREG_SPLIT_NO_EMPTY);
                    $was = false;
        Severity: Minor
        Found in phpsysinfo/includes/os/class.QNX.inc.php - About 1 hr to fix

          Method __construct has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              public function __construct()
              {
                  parent::__construct();
                  if (defined('PSI_UPS_NUT_LIST') && is_string(PSI_UPS_NUT_LIST)) {
                      if (preg_match(ARRAY_EXP, PSI_UPS_NUT_LIST)) {
          Severity: Minor
          Found in phpsysinfo/includes/ups/class.nut.inc.php - About 1 hr to fix

            Method execute has 27 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                public function execute()
                {
                    $i = 0;
                    $quotas = array();
                    foreach ($this->_filecontent as $thisline) {
            Severity: Minor
            Found in phpsysinfo/plugins/quotas/class.quotas.inc.php - About 1 hr to fix

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

                      function _fnScrollBarWidth ()
                      {  
                          var inner = document.createElement('p');
                          var style = inner.style;
                          style.width = "100%";
              Severity: Minor
              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

                function getWidthOrHeight( elem, name, extra ) {
                
                    // Start with offset property, which is equivalent to the border-box value
                    var valueIsBorderBox = true,
                        val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
                Severity: Minor
                Found in phpsysinfo/js/jQuery/jquery.js - About 1 hr to fix

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

                      offset: function( options ) {
                          if ( arguments.length ) {
                              return options === undefined ?
                                  this :
                                  this.each( function( i ) {
                  Severity: Minor
                  Found in phpsysinfo/js/jQuery/jquery.js - About 1 hr to fix

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

                            function _fnGetCellData( oSettings, iRow, iCol, sSpecific )
                            {
                                var sData;
                                var oCol = oSettings.aoColumns[iCol];
                                var oData = oSettings.aoData[iRow]._aData;
                    Severity: Minor
                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 1 hr to fix

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

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

                        Method _voltage has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                            private function _voltage()
                            {
                                foreach ($this->_lines as $line) {
                                    $buffer = preg_split("/\s*\|\s*/", $line);
                                    if (isset($buffer[2]) && $buffer[2] == "Voltage"
                        Severity: Minor
                        Found in phpsysinfo/includes/mb/class.ipmiutil.inc.php - About 1 hr to fix

                          Method _hostname has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                          Open

                              private function _hostname()
                              {
                                  if (PSI_USE_VHOST === true) {
                                      if (CommonFunctions::readenv('SERVER_NAME', $hnm)) $this->sys->setHostname($hnm);
                                  } else {
                          Severity: Minor
                          Found in phpsysinfo/includes/os/class.WINNT.inc.php - About 1 hr to fix

                            Method _current has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                            Open

                                private function _current()
                                {
                                    foreach ($this->_lines as $line) {
                                        $buffer = preg_split("/\s*\|\s*/", $line);
                                        if (isset($buffer[2]) && $buffer[2] == "Current"
                            Severity: Minor
                            Found in phpsysinfo/includes/mb/class.ipmiutil.inc.php - About 1 hr to fix

                              Method _addchild has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                              Open

                                  private function _addchild($child, SimpleXMLExtended $xml, &$positions)
                                  {
                                      foreach ($child as $key=>$value) {
                                          $xmlnode = $xml->addChild("Process");
                                          if (isset($value[0])) {
                              Severity: Minor
                              Found in phpsysinfo/plugins/ps/class.ps.inc.php - About 1 hr to fix

                                Method checkForExtensions has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                Open

                                    public static function checkForExtensions($arrExt = array())
                                    {
                                        if ((strcasecmp(PSI_SYSTEM_CODEPAGE, "UTF-8") == 0) || (strcasecmp(PSI_SYSTEM_CODEPAGE, "CP437") == 0))
                                            $arrReq = array('simplexml', 'pcre', 'xml', 'dom');
                                        elseif (PSI_OS == "WINNT")
                                Severity: Minor
                                Found in phpsysinfo/includes/class.CommonFunctions.inc.php - About 1 hr to fix

                                  Method xml has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                  Open

                                      public function xml()
                                      {
                                          if (empty($this->_result) || empty($this->_ids)) {
                                              return $this->xml->getSimpleXmlElement();
                                          }
                                  Severity: Minor
                                  Found in phpsysinfo/plugins/smart/class.smart.inc.php - About 1 hr to fix

                                    Method uninstall_MimeTypes has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                    Open

                                    function uninstall_MimeTypes($dirname = '')
                                    {
                                        include_once(XOOPS_ROOT_PATH . '/kernel/mimetypes.php');
                                    
                                        $hModule = xoops_getHandler('module');
                                    Severity: Minor
                                    Found in modules/xoopsinfo/include/mimetypes.php - About 1 hr to fix

                                      Method _copyFile has 26 lines of code (exceeds 25 allowed). Consider refactoring.
                                      Open

                                          function _copyFile($chmod) {
                                              $matched = array();
                                              if (!preg_match("/\.([a-zA-Z0-9]+)$/", $this->mediaName, $matched)) {
                                                  return false;
                                              }
                                      Severity: Minor
                                      Found in class/uploader.php - About 1 hr to fix

                                        Consider simplifying this complex logical expression.
                                        Open

                                                if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
                                                        support.getById && context.nodeType === 9 && documentIsHTML &&
                                                        Expr.relative[ tokens[1].type ] ) {
                                        
                                                    context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
                                        Severity: Major
                                        Found in phpsysinfo/js/jQuery/jquery.js - About 1 hr to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language