XoopsModules25x/adminer

View on GitHub

Showing 307 of 307 total issues

Avoid too many return statements within this method.
Open

                case 'procs_priv': return array(array('table' => 'user', 'source' => array('Host', 'User'), 'target' => array('Host', 'User')), array('table' => 'proc', 'source' => array('Db', 'Routine_name'), 'target' => array('db', 'name')));
Severity: Major
Found in include/plugins/foreign-system.php - About 30 mins to fix

    Avoid too many return statements within this method.
    Open

                    case 'time_zone_name': return array(array('table' => 'time_zone', 'source' => array('Time_zone_id'), 'target' => array('Time_zone_id')));
    Severity: Major
    Found in include/plugins/foreign-system.php - About 30 mins to fix

      Avoid too many return statements within this method.
      Open

      false;return$W;}if(preg_match('~blob|bytea|raw|file~',$l["type"])&&ini_bool("file_uploads")){$Eb=get_file("fields-$gc");if(!is_string($Eb))return
      Severity: Major
      Found in include/editor.php - About 30 mins to fix

        Avoid too many return statements within this method.
        Open

                        case 'tables_priv': return array(array('table' => 'user', 'source' => array('Host', 'User'), 'target' => array('Host', 'User')));
        Severity: Major
        Found in include/plugins/foreign-system.php - About 30 mins to fix

          Avoid too many return statements within this method.
          Open

                          case 'SCHEMA_PRIVILEGES': return array($schemata);
          Severity: Major
          Found in include/plugins/foreign-system.php - About 30 mins to fix

            Avoid too many return statements within this method.
            Open

            null;if($o=="orig")return($l["on_update"]=="CURRENT_TIMESTAMP"?idf_escape($l["field"]):false);if($o=="NULL")return"NULL";if($l["type"]=="set")return
            Severity: Major
            Found in include/editor.php - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                              case 'EVENTS': return array_merge(array(array('source' => array('EVENT_CATALOG', 'EVENT_SCHEMA')) + $schemata), $routine_charsets);
              Severity: Major
              Found in include/plugins/foreign-system.php - About 30 mins to fix

                Avoid too many return statements within this method.
                Open

                                case 'PARTITIONS': return array($schemata, $tables);
                Severity: Major
                Found in include/plugins/foreign-system.php - About 30 mins to fix

                  Avoid too many return statements within this method.
                  Open

                  array_sum((array)$W);if($o=="json"){$o="";$W=json_decode($W,true);if(!is_array($W))return
                  false;return$W;}if(preg_match('~blob|bytea|raw|file~',$l["type"])&&ini_bool("file_uploads")){$Eb=get_file("fields-$gc");if(!is_string($Eb))return
                  Severity: Major
                  Found in include/editor.php - About 30 mins to fix

                    Avoid too many return statements within this method.
                    Open

                                    case 'SCHEMATA': return array(array('source' => array('DEFAULT_CHARACTER_SET_NAME')) + $character_sets, array('source' => array('DEFAULT_COLLATION_NAME')) + $collations);
                    Severity: Major
                    Found in include/plugins/foreign-system.php - About 30 mins to fix

                      Avoid too many return statements within this method.
                      Open

                                      case 'help_topic': return array(array('table' => 'help_category', 'source' => array('help_category_id'), 'target' => array('help_category_id')));
                      Severity: Major
                      Found in include/plugins/foreign-system.php - About 30 mins to fix

                        Avoid too many return statements within this method.
                        Open

                                        case 'COLLATIONS': return array($character_sets);
                        Severity: Major
                        Found in include/plugins/foreign-system.php - About 30 mins to fix

                          Avoid too many return statements within this method.
                          Open

                                          case 'TABLES': return array($schemata, array('source' => array('TABLE_COLLATION')) + $collations);
                          Severity: Major
                          Found in include/plugins/foreign-system.php - About 30 mins to fix

                            Avoid too many return statements within this method.
                            Open

                                            case 'TABLE_PRIVILEGES': return array($schemata, $tables);
                            Severity: Major
                            Found in include/plugins/foreign-system.php - About 30 mins to fix

                              Avoid too many return statements within this method.
                              Open

                              null;if($o=="orig")return($l["on_update"]=="CURRENT_TIMESTAMP"?idf_escape($l["field"]):false);if($o=="NULL")return"NULL";if($l["type"]=="set")return
                              Severity: Major
                              Found in include/editor.php - About 30 mins to fix

                                Avoid too many return statements within this method.
                                Open

                                                case 'COLUMN_PRIVILEGES': return array($schemata, $tables, $columns);
                                Severity: Major
                                Found in include/plugins/foreign-system.php - About 30 mins to fix

                                  Avoid too many return statements within this method.
                                  Open

                                  false;return$W;}if(preg_match('~blob|bytea|raw|file~',$l["type"])&&ini_bool("file_uploads")){$Eb=get_file("fields-$gc");if(!is_string($Eb))return
                                  false;return
                                  Severity: Major
                                  Found in include/editor.php - About 30 mins to fix

                                    Avoid too many return statements within this method.
                                    Open

                                    editInput($R,$l,$c,$W){if($l["type"]=="enum")return(isset($_GET["select"])?"<label><input type='radio'$c value='-1' checked><i>".'original'."</i></label> ":"").enum_input("radio",$c,$l,($W||isset($_GET["select"])?$W:0),($l["null"]?"":null));$Xc=$this->_foreignKeyOptions($R,$l["field"],$W);if($Xc!==null)return(is_array($Xc)?"<select$c>".optionlist($Xc,$W,true)."</select>":"<input value='".h($W)."'$c class='hidden'><input value='".h($Xc)."' class='jsonly' onkeyup=\"whisper('".h(ME."script=complete&source=".urlencode($R)."&field=".urlencode($l["field"]))."&value=', this);\"><div onclick='return whisperClick(event, this.previousSibling);'></div>");if(like_bool($l))return'<input type="checkbox" value="'.h($W?$W:1).'"'.($W?' checked':'')."$c>";$cc="";if(preg_match('~time~',$l["type"]))$cc='HH:MM:SS';if(preg_match('~date|timestamp~',$l["type"]))$cc='[yyyy]-mm-dd'.($cc?" [$cc]":"");if($cc)return"<input value='".h($W)."'$c> ($cc)";if(preg_match('~_(md5|sha1)$~i',$l["field"]))return"<input type='password' value='".h($W)."'$c>";return'';}function
                                    Severity: Major
                                    Found in include/editor.php - About 30 mins to fix

                                      Avoid too many return statements within this method.
                                      Open

                                                      case 'COLLATION_CHARACTER_SET_APPLICABILITY': return array($collations, $character_sets);
                                      Severity: Major
                                      Found in include/plugins/foreign-system.php - About 30 mins to fix

                                        Avoid too many return statements within this method.
                                        Open

                                                        case 'COLUMNS': return array($schemata, $tables, $character_sets, $collations);
                                        Severity: Major
                                        Found in include/plugins/foreign-system.php - About 30 mins to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language