Showing 307 of 307 total issues
Avoid too many return
statements within this method. Open
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')));
Avoid too many return
statements within this method. Open
Open
case 'time_zone_name': return array(array('table' => 'time_zone', 'source' => array('Time_zone_id'), 'target' => array('Time_zone_id')));
Avoid too many return
statements within this method. Open
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
Avoid too many return
statements within this method. Open
Open
case 'tables_priv': return array(array('table' => 'user', 'source' => array('Host', 'User'), 'target' => array('Host', 'User')));
Avoid too many return
statements within this method. Open
Open
case 'SCHEMA_PRIVILEGES': return array($schemata);
Avoid too many return
statements within this method. Open
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
Avoid too many return
statements within this method. Open
Open
case 'EVENTS': return array_merge(array(array('source' => array('EVENT_CATALOG', 'EVENT_SCHEMA')) + $schemata), $routine_charsets);
Avoid too many return
statements within this method. Open
Open
case 'PARTITIONS': return array($schemata, $tables);
Avoid too many return
statements within this method. Open
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
Avoid too many return
statements within this method. Open
Open
case 'SCHEMATA': return array(array('source' => array('DEFAULT_CHARACTER_SET_NAME')) + $character_sets, array('source' => array('DEFAULT_COLLATION_NAME')) + $collations);
Avoid too many return
statements within this method. Open
Open
case 'help_topic': return array(array('table' => 'help_category', 'source' => array('help_category_id'), 'target' => array('help_category_id')));
Avoid too many return
statements within this method. Open
Open
case 'COLLATIONS': return array($character_sets);
Avoid too many return
statements within this method. Open
Open
case 'TABLES': return array($schemata, array('source' => array('TABLE_COLLATION')) + $collations);
Avoid too many return
statements within this method. Open
Open
case 'TABLE_PRIVILEGES': return array($schemata, $tables);
Avoid too many return
statements within this method. Open
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
Avoid too many return
statements within this method. Open
Open
case 'COLUMN_PRIVILEGES': return array($schemata, $tables, $columns);
Avoid too many return
statements within this method. Open
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
Avoid too many return
statements within this method. Open
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
Avoid too many return
statements within this method. Open
Open
case 'COLLATION_CHARACTER_SET_APPLICABILITY': return array($collations, $character_sets);
Avoid too many return
statements within this method. Open
Open
case 'COLUMNS': return array($schemata, $tables, $character_sets, $collations);