XoopsModules25x/xoopsinfo

View on GitHub

Showing 1,065 of 16,781 total issues

Consider simplifying this complex logical expression.
Open

            if (file_exists($fname = '/etc/sysconfig/i18n')
               || file_exists($fname = '/etc/default/locale')
               || file_exists($fname = '/etc/locale.conf')
               || file_exists($fname = '/etc/sysconfig/language')
               || file_exists($fname = '/etc/profile.d/lang.sh')
Severity: Major
Found in phpsysinfo/read_config.php - About 40 mins to fix

    Consider simplifying this complex logical expression.
    Open

                            if (((in_array($value, array_keys($this->_ids)) && $labels[$j] == 'id') || ($found && (in_array($labels[$j], array_values($this->_ids)))) || ($found && $labels[$j] == 'attribute_name'))) {
                                $this->_result[$disk][$i][$labels[$j]] = $value;
                                $found = true;
                            }
    Severity: Major
    Found in phpsysinfo/plugins/smart/class.smart.inc.php - About 40 mins to fix

      Consider simplifying this complex logical expression.
      Open

              if (file_exists($log_file)
                  && ($lsb || $lsbfile || ($strFileName != "/etc/lsb-release"))
                  && ($contents = @file_get_contents($log_file))
                  && preg_match("/^\-\-\-\-\-\-\-\-\-\-".preg_quote($strFileName, '/')."\-\-\-\-\-\-\-\-\-\-\r?\n/m", $contents)) {
                  return true;
      Severity: Major
      Found in phpsysinfo/tools/checkdistro.php - About 40 mins to fix

        Consider simplifying this complex logical expression.
        Open

            if (defined('_PHPSYSINFO') && defined('_PHPSECINFO')) {
                $break = 4;
            } elseif ((defined('_PHPSYSINFO') && !defined('_PHPSECINFO')) || (!defined('_PHPSYSINFO') && defined('_PHPSECINFO'))) {
                $break = 3;
            } elseif (!defined('_PHPSYSINFO') && !defined('_PHPSECINFO')) {
        Severity: Major
        Found in modules/xoopsinfo/include/functions.php - About 40 mins to fix

          Consider simplifying this complex logical expression.
          Open

                              if (isset($group['devs']) && ($group['devs']>0) &&
                                 (!isset($group['items']) || (count($group['items'])<$group['devs'])) &&
                                 isset($group['subsets']) && ($group['subsets']>0)) for ($i = 0; $i < $group['subsets']; $i++) {
                                  if (isset($this->_result['devices'][$gid."-".$i]['items'][0]['parentid'])) {
                                      foreach ($this->_result['devices'][$gid."-".$i]['items'] as $fid=>$from) {
          Severity: Major
          Found in phpsysinfo/plugins/raid/class.raid.inc.php - About 40 mins to fix

            Function augmentWidthOrHeight has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

            function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
            Severity: Minor
            Found in phpsysinfo/js/jQuery/jquery.js - About 35 mins to fix

              Function buildFragment has 5 arguments (exceeds 4 allowed). Consider refactoring.
              Open

              function buildFragment( elems, context, scripts, selection, ignored ) {
              Severity: Minor
              Found in phpsysinfo/js/jQuery/jquery.js - About 35 mins to fix

                Function add has 5 arguments (exceeds 4 allowed). Consider refactoring.
                Open

                    add: function( elem, types, handler, data, selector ) {
                Severity: Minor
                Found in phpsysinfo/js/jQuery/jquery.js - About 35 mins to fix

                  Function remove has 5 arguments (exceeds 4 allowed). Consider refactoring.
                  Open

                      remove: function( elem, types, handler, selector, mappedTypes ) {
                  Severity: Minor
                  Found in phpsysinfo/js/jQuery/jquery.js - About 35 mins to fix

                    Function superMatcher has 5 arguments (exceeds 4 allowed). Consider refactoring.
                    Open

                            superMatcher = function( seed, context, xml, results, outermost ) {
                    Severity: Minor
                    Found in phpsysinfo/js/jQuery/jquery.js - About 35 mins to fix

                      Function condense has 5 arguments (exceeds 4 allowed). Consider refactoring.
                      Open

                      function condense( unmatched, map, filter, context, xml ) {
                      Severity: Minor
                      Found in phpsysinfo/js/jQuery/jquery.js - About 35 mins to fix

                        Function CHILD has 5 arguments (exceeds 4 allowed). Consider refactoring.
                        Open

                                "CHILD": function( type, what, argument, first, last ) {
                        Severity: Minor
                        Found in phpsysinfo/js/jQuery/jquery.js - About 35 mins to fix

                          Function Tween has 5 arguments (exceeds 4 allowed). Consider refactoring.
                          Open

                          function Tween( elem, options, prop, end, easing ) {
                          Severity: Minor
                          Found in phpsysinfo/js/jQuery/jquery.js - About 35 mins to fix

                            Function fnFilter has 5 arguments (exceeds 4 allowed). Consider refactoring.
                            Open

                                    this.fnFilter = function( sInput, iColumn, bRegex, bSmart, bShowGlobal )
                            Severity: Minor
                            Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

                              Function fnUpdate has 5 arguments (exceeds 4 allowed). Consider refactoring.
                              Open

                                      this.fnUpdate = function( mData, mRow, iColumn, bRedraw, bAction )
                              Severity: Minor
                              Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

                                Function _fnCreateCookie has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                Open

                                        function _fnCreateCookie ( sName, sValue, iSecs, sBaseName, fnCallback )
                                Severity: Minor
                                Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

                                  Function _fnFilterColumn has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                  Open

                                          function _fnFilterColumn ( oSettings, sInput, iColumn, bRegex, bSmart )
                                  Severity: Minor
                                  Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

                                    Function _fnFilter has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                    Open

                                            function _fnFilter( oSettings, sInput, iForce, bRegex, bSmart )
                                    Severity: Minor
                                    Found in phpsysinfo/js/jQuery/jquery.dataTables.js - About 35 mins to fix

                                      Method rfts has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                      Open

                                          public static function rfts($strFileName, &$strRet, $intLines = 0, $intBytes = 4096, $booErrorRep = true)
                                      Severity: Minor
                                      Found in phpsysinfo/includes/class.CommonFunctions.inc.php - About 35 mins to fix

                                        Method executeProgram has 5 arguments (exceeds 4 allowed). Consider refactoring.
                                        Open

                                            public static function executeProgram($strProgramname, $strArgs, &$strBuffer, $booErrorRep = true, $timeout = PSI_EXEC_TIMEOUT_INT)
                                        Severity: Minor
                                        Found in phpsysinfo/includes/class.CommonFunctions.inc.php - About 35 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language