\n";
$retval .= " \n";
$retval .= "
| \n";
$retval .= "
\n";
$retval .= " $link_off\n";
$retval .= " ";
- $retval .= str_replace(' ', ' ', htmlspecialchars($options[0]['label'])) . "\n";
- $retval .= " \n";
+ $retval .= str_replace(' ', ' ', htmlspecialchars($options[0]['label']));
+ $retval .= "\n" . " \n";
$retval .= " \n";
$retval .= " \n";
$retval .= " \n";
@@ -2985,7 +3016,8 @@ function PMA_extractColumnSpec($columnspec)
// Increment character index
$index++;
} // end while
- $printtype = $type . '(' . str_replace("','", "', '", $spec_in_brackets) . ')';
+ $printtype = $type
+ . '(' . str_replace("','", "', '", $spec_in_brackets) . ')';
$binary = false;
$unsigned = false;
$zerofill = false;
@@ -2999,7 +3031,9 @@ function PMA_extractColumnSpec($columnspec)
// this would be a BINARY or VARBINARY column type;
// by the way, a BLOB should not show the BINARY attribute
// because this is not accepted in MySQL syntax.
- if (preg_match('@binary@', $printtype) && ! preg_match('@binary[\(]@', $printtype)) {
+ if (preg_match('@binary@', $printtype)
+ && ! preg_match('@binary[\(]@', $printtype)
+ ) {
$printtype = preg_replace('@binary@', '', $printtype);
$binary = true;
} else {
@@ -3026,7 +3060,9 @@ function PMA_extractColumnSpec($columnspec)
$can_contain_collation = false;
if (! $binary
- && preg_match("@^(char|varchar|text|tinytext|mediumtext|longtext|set|enum)@", $type)
+ && preg_match(
+ "@^(char|varchar|text|tinytext|mediumtext|longtext|set|enum)@", $type
+ )
) {
$can_contain_collation = true;
}
@@ -3346,7 +3382,8 @@ function PMA_selectUploadFile($import_list, $uploaddir)
$matcher = '@\.(' . $extensions . ')(\.('
. PMA_supportedDecompressions() . '))?$@';
- $active = (isset($GLOBALS['timeout_passed']) && $GLOBALS['timeout_passed'] && isset($local_import_file))
+ $active = (isset($GLOBALS['timeout_passed']) && $GLOBALS['timeout_passed']
+ && isset($local_import_file))
? $local_import_file
: '';
$files = PMA_getFileSelectOptions(
@@ -3360,7 +3397,8 @@ function PMA_selectUploadFile($import_list, $uploaddir)
)->display();
} elseif (! empty($files)) {
echo "\n";
- echo ' ' . "\n"
. '' . "\n";
@@ -1921,7 +1927,8 @@ function PMA_getTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
// delete/edit options correctly for tables without keys.
$odd_row = true;
- $directionCondition = ($_SESSION['tmp_user_values']['disp_direction'] == 'horizontal')
+ $directionCondition
+ = ($_SESSION['tmp_user_values']['disp_direction'] == 'horizontal')
|| ($_SESSION['tmp_user_values']['disp_direction'] == 'horizontalflipped');
while ($row = PMA_DBI_fetch_row($dt_result)) {
@@ -1975,7 +1982,9 @@ function PMA_getTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
} // end if (1.2.1)
// 1.2.2 Delete/Kill link(s)
- if (($is_display['del_lnk'] == 'dr') || ($is_display['del_lnk'] == 'kp')) {
+ if (($is_display['del_lnk'] == 'dr')
+ || ($is_display['del_lnk'] == 'kp')
+ ) {
list($del_query, $del_url, $del_str, $js_conf)
= PMA_getDeleteAndKillLinks(
@@ -2068,7 +2077,8 @@ function PMA_getTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
if (file_exists($include_file)) {
- $transformfunction_name = 'PMA_transformation_' . str_replace(
+ $transformfunction_name = 'PMA_transformation_'
+ . str_replace(
'.inc.php', '',
$GLOBALS['mime_map'][$meta->name]['transformation']
);
@@ -2080,8 +2090,11 @@ function PMA_getTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
$transform_function = $transformfunction_name;
$transform_options = PMA_transformation_getOptions(
- isset($GLOBALS['mime_map'][$meta->name]['transformation_options'])
- ? $GLOBALS['mime_map'][$meta->name]['transformation_options']
+ isset($GLOBALS['mime_map'][$meta->name]
+ ['transformation_options']
+ )
+ ? $GLOBALS['mime_map'][$meta->name]
+ ['transformation_options']
: ''
);
@@ -2105,7 +2118,8 @@ function PMA_getTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
$_url_params['sql_query'] = $url_sql_query;
}
- $transform_options['wrapper_link'] = PMA_generate_common_url($_url_params);
+ $transform_options['wrapper_link']
+ = PMA_generate_common_url($_url_params);
if ($meta->numeric == 1) {
// n u m e r i c
@@ -2216,11 +2230,12 @@ function PMA_getTableBody(&$dt_result, &$is_display, $map, $analyzed_sql)
if (!empty($del_url) && ($is_display['del_lnk'] != 'kp')) {
- $vertical_display['row_delete'][$row_no] .= PMA_getCheckboxForMultiRowSubmissions(
- $del_url, $is_display, $row_no, $where_clause_html,
- $condition_array, $del_query, '[%_PMA_CHECKBOX_DIR_%]',
- $alternating_color_class . $vertical_class
- );
+ $vertical_display['row_delete'][$row_no]
+ .= PMA_getCheckboxForMultiRowSubmissions(
+ $del_url, $is_display, $row_no, $where_clause_html,
+ $condition_array, $del_query, '[%_PMA_CHECKBOX_DIR_%]',
+ $alternating_color_class . $vertical_class
+ );
} else {
unset($vertical_display['row_delete'][$row_no]);
@@ -2376,7 +2391,8 @@ function PMA_getVerticalDisplaySupportSegments(
}
if ($vertical_display['emptyafter'] > 0) {
- $support_html .= ' | '
+ $support_html .= ' | '
. "\n" . ' | ' . "\n";
}
$support_html .= '' . "\n";
@@ -3100,7 +3116,8 @@ function PMA_getVerticalTable()
// assign appropriate key with current column order
$key = $col_order ? $col_order[$j] : $j;
- $vertical_table_html .= '
' . "\n"
. $val;
@@ -3285,7 +3302,9 @@ function PMA_setConfigParamsForDisplayTable()
$_SESSION['tmp_user_values']['query'][$sql_md5]['disp_direction']
= $_REQUEST['disp_direction'];
unset($_REQUEST['disp_direction']);
- } elseif (empty($_SESSION['tmp_user_values']['query'][$sql_md5]['disp_direction'])) {
+ } elseif (
+ empty($_SESSION['tmp_user_values']['query'][$sql_md5]['disp_direction'])
+ ) {
$_SESSION['tmp_user_values']['query'][$sql_md5]['disp_direction']
= $GLOBALS['cfg']['DefaultDisplay'];
}
@@ -3294,7 +3313,9 @@ function PMA_setConfigParamsForDisplayTable()
$_SESSION['tmp_user_values']['query'][$sql_md5]['repeat_cells']
= $_REQUEST['repeat_cells'];
unset($_REQUEST['repeat_cells']);
- } elseif (empty($_SESSION['tmp_user_values']['query'][$sql_md5]['repeat_cells'])) {
+ } elseif (
+ empty($_SESSION['tmp_user_values']['query'][$sql_md5]['repeat_cells'])
+ ) {
$_SESSION['tmp_user_values']['query'][$sql_md5]['repeat_cells']
= $GLOBALS['cfg']['RepeatCells'];
}
@@ -3324,7 +3345,9 @@ function PMA_setConfigParamsForDisplayTable()
$_SESSION['tmp_user_values']['query'][$sql_md5]['display_text']
= $_REQUEST['display_text'];
unset($_REQUEST['display_text']);
- } elseif (empty($_SESSION['tmp_user_values']['query'][$sql_md5]['display_text'])) {
+ } elseif (
+ empty($_SESSION['tmp_user_values']['query'][$sql_md5]['display_text'])
+ ) {
$_SESSION['tmp_user_values']['query'][$sql_md5]['display_text'] = 'P';
}
@@ -3332,7 +3355,9 @@ function PMA_setConfigParamsForDisplayTable()
$_SESSION['tmp_user_values']['query'][$sql_md5]['relational_display']
= $_REQUEST['relational_display'];
unset($_REQUEST['relational_display']);
- } elseif (empty($_SESSION['tmp_user_values']['query'][$sql_md5]['relational_display'])) {
+ } elseif (
+ empty($_SESSION['tmp_user_values']['query'][$sql_md5]['relational_display'])
+ ) {
$_SESSION['tmp_user_values']['query'][$sql_md5]['relational_display'] = 'K';
}
@@ -3340,7 +3365,9 @@ function PMA_setConfigParamsForDisplayTable()
$_SESSION['tmp_user_values']['query'][$sql_md5]['geometry_display']
= $_REQUEST['geometry_display'];
unset($_REQUEST['geometry_display']);
- } elseif (empty($_SESSION['tmp_user_values']['query'][$sql_md5]['geometry_display'])) {
+ } elseif (
+ empty($_SESSION['tmp_user_values']['query'][$sql_md5]['geometry_display'])
+ ) {
$_SESSION['tmp_user_values']['query'][$sql_md5]['geometry_display'] = 'GEOM';
}
@@ -3365,7 +3392,9 @@ function PMA_setConfigParamsForDisplayTable()
unset($_REQUEST['display_binary_as_hex']);
} elseif (isset($_REQUEST['display_options_form'])) {
// we know that the checkbox was unchecked
- unset($_SESSION['tmp_user_values']['query'][$sql_md5]['display_binary_as_hex']);
+ unset(
+ $_SESSION['tmp_user_values']['query'][$sql_md5]['display_binary_as_hex']
+ );
} elseif (isset($_REQUEST['full_text_button'])) {
// do nothing to keep the value that is there in the session
} else {
@@ -3392,7 +3421,9 @@ function PMA_setConfigParamsForDisplayTable()
unset($_REQUEST['hide_transformation']);
} elseif (isset($_REQUEST['display_options_form'])) {
// we know that the checkbox was unchecked
- unset($_SESSION['tmp_user_values']['query'][$sql_md5]['hide_transformation']);
+ unset(
+ $_SESSION['tmp_user_values']['query'][$sql_md5]['hide_transformation']
+ );
}
// move current query to the last position, to be removed last
@@ -3420,7 +3451,9 @@ function PMA_setConfigParamsForDisplayTable()
? true
: false;
$_SESSION['tmp_user_values']['display_binary_as_hex']
- = isset($_SESSION['tmp_user_values']['query'][$sql_md5]['display_binary_as_hex'])
+ = isset(
+ $_SESSION['tmp_user_values']['query'][$sql_md5]['display_binary_as_hex']
+ )
? true
: false;
$_SESSION['tmp_user_values']['display_blob']
@@ -3428,7 +3461,9 @@ function PMA_setConfigParamsForDisplayTable()
? true
: false;
$_SESSION['tmp_user_values']['hide_transformation']
- = isset($_SESSION['tmp_user_values']['query'][$sql_md5]['hide_transformation'])
+ = isset(
+ $_SESSION['tmp_user_values']['query'][$sql_md5]['hide_transformation']
+ )
? true
: false;
$_SESSION['tmp_user_values']['pos']
@@ -3510,7 +3545,10 @@ function PMA_getTable(&$dt_result, &$the_disp_mode, $analyzed_sql)
$pre_count = '~';
$after_count = PMA_showHint(
PMA_sanitize(
- __('May be approximate. See [a@./Documentation.html#faq3_11@Documentation]FAQ 3.11[/a]')
+ __(
+ 'May be approximate.
+ See [a@./Documentation.html#faq3_11@Documentation]FAQ 3.11[/a]'
+ )
)
);
} else {
@@ -3607,7 +3645,8 @@ function PMA_getTable(&$dt_result, &$the_disp_mode, $analyzed_sql)
foreach ($analyzed_sql[0]['table_ref']
as $table_ref_position => $table_ref) {
- $target[] = $analyzed_sql[0]['table_ref'][$table_ref_position]['table_true_name'];
+ $target[] = $analyzed_sql[0]['table_ref']
+ [$table_ref_position]['table_true_name'];
}
}
@@ -3734,10 +3773,10 @@ function PMA_getOffsets()
/**
* Get sort parameters
*
- * @param string $order_by_clause
+ * @param string $order_by_clause the order by clause of the sql query
*
- * @return array 3 element array: $sort_expression,
- * $sort_expression_nodirection, $sort_direction
+ * @return array 3 element array: $sort_expression,
+ * $sort_expression_nodirection, $sort_direction
*
* @see PMA_getTable()
*/
@@ -3940,7 +3979,10 @@ function PMA_setMessageInformation(
) {
$message = PMA_Message::notice(
- __('This view has at least this number of rows. Please refer to %sdocumentation%s.')
+ __(
+ 'This view has at least this number of rows.
+ Please refer to %sdocumentation%s.'
+ )
);
$message->addParam('[a@./Documentation.html#cfg_MaxExactCount@_blank]');
@@ -4431,7 +4473,8 @@ function PMA_getRowData($class, $condition_field, $analyzed_sql, $meta, $map,
$alias = $analyzed_sql[0]['select_expr'][$select_expr_position]['alias'];
if (isset($alias) && strlen($alias)) {
- $true_column = $analyzed_sql[0]['select_expr'][$select_expr_position]['column'];
+ $true_column = $analyzed_sql[0]['select_expr']
+ [$select_expr_position]['column'];
if ($alias == $meta->name) {
// this change in the parameter does not matter
@@ -4718,7 +4761,8 @@ function PMA_getDeleteLink($del_url, $del_str, $js_conf, $class)
*
* @param string $position the position of the checkbox and links
* @param string $del_url delete url
- * @param array $is_display array with explicit indexes for all the display elements
+ * @param array $is_display array with explicit indexes for all the
+ * display elements
* @param string $row_no row number
* @param string $where_clause where clause
* @param string $where_clause_html url encoded where cluase