coding standard: no spaces inside braces

This commit is contained in:
Sebastian Mendel
2007-04-01 11:02:46 +00:00
parent adb39168cc
commit cfeb306526
84 changed files with 745 additions and 747 deletions

View File

@@ -242,7 +242,8 @@ function PMA_exportData($db, $table, $crlf, $error_url, $sql_query) {
$buffer = ''; $buffer = '';
// print each row // print each row
for ($i = 0; $i < $columns_cnt; $i++) { for ($i = 0; $i < $columns_cnt; $i++) {
if ( isset($record[$columns[$i]]) && (!function_exists('is_null') || !is_null($record[$columns[$i]]))) { if (isset($record[$columns[$i]])
&& (! function_exists('is_null') || !is_null($record[$columns[$i]]))) {
$column_value = PMA_texEscape(stripslashes($record[$columns[$i]])); $column_value = PMA_texEscape(stripslashes($record[$columns[$i]]));
} else { } else {
$column_value = $GLOBALS['latex_null']; $column_value = $GLOBALS['latex_null'];

View File

@@ -9,12 +9,11 @@
* Prepares the work and runs some other scripts if required * Prepares the work and runs some other scripts if required
*/ */
if (! empty($submit_mult) if (! empty($submit_mult)
&& ($submit_mult != $strWithChecked) && $submit_mult != $strWithChecked
&& ( ( isset($selected_db) && !empty($selected_db) ) && (! empty($selected_db)
|| ( isset($selected_tbl) && !empty($selected_tbl) ) || ! empty($selected_tbl)
|| ( isset($selected_fld) && !empty($selected_fld) ) || ! empty($selected_fld)
|| !empty($rows_to_delete) || ! empty($rows_to_delete))) {
)) {
define('PMA_SUBMIT_MULT', 1); define('PMA_SUBMIT_MULT', 1);
if (isset($selected_db) && !empty($selected_db)) { if (isset($selected_db) && !empty($selected_db)) {
$selected = $selected_db; $selected = $selected_db;

View File

@@ -1172,8 +1172,7 @@ if ( ! defined( 'PMA_MINIMUM_COMMON' ) ) {
// the "*" is not saved // the "*" is not saved
if (isset($chain) && !$seen_end_of_table_ref if (isset($chain) && !$seen_end_of_table_ref
&& ( (!$seen_from && ((!$seen_from && $arr[$i]['type'] == 'punct_listsep')
&& $arr[$i]['type'] == 'punct_listsep')
|| ($arr[$i]['type'] == 'alpha_reservedWord' && $upper_data == 'FROM'))) { || ($arr[$i]['type'] == 'alpha_reservedWord' && $upper_data == 'FROM'))) {
$size_chain = count($chain); $size_chain = count($chain);
$current_select_expr++; $current_select_expr++;

View File

@@ -289,8 +289,7 @@ foreach ($the_tables as $key => $table) {
<?php <?php
if (! $tbl_is_view if (! $tbl_is_view
&& ( $db != 'information_schema' && ($db != 'information_schema' || PMA_MYSQL_INT_VERSION < 50002)) {
|| PMA_MYSQL_INT_VERSION < 50002 ) ) {
/** /**
* Displays indexes * Displays indexes