Skip to content

Commit 3c9f6a6

Browse files
committed
Space around . operator - mroe instances
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
1 parent 74aebe6 commit 3c9f6a6

9 files changed

Lines changed: 42 additions & 42 deletions

error_report.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
PMA_Message::error(
3232
__(
3333
'An error has been detected and an error report has been '
34-
.'automatically submitted based on your settings.'
34+
. 'automatically submitted based on your settings.'
3535
)
3636
. '<br />'
3737
. __('You may want to refresh the page.')

gis_data_editor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ function escape($variable)
383383
echo '<br/>';
384384
echo '<input type="submit"'
385385
. ' name="gis_data[' . $a . '][' . $type . '][' . $k . '][add_line]"'
386-
. ' class="add addLine" value="' . __('Add an inner ring'). '" />';
386+
. ' class="add addLine" value="' . __('Add an inner ring') . '" />';
387387
echo '<br/>';
388388
}
389389
echo '<br/>';

import_status.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
echo '<fieldset class="tblFooters">' . "\n";
8686
echo ' [ <a href="' . $_SESSION['Import_message']['go_back_url']
8787
. '">' . __('Back') . '</a> ]' . "\n";
88-
echo '</fieldset>'."\n";
88+
echo '</fieldset>' . "\n";
8989

9090
} else {
9191
PMA_importAjaxStatus($_GET["id"]);

index.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@
223223
if ($server > 0) {
224224
echo '<ul>';
225225
PMA_printListItem(
226-
PMA_Util::getImage('b_tblops.png') . " " .__('More settings'),
226+
PMA_Util::getImage('b_tblops.png') . " " . __('More settings'),
227227
'li_user_preferences',
228228
'prefs_manage.php?' . $common_url_query,
229229
null,
@@ -633,10 +633,10 @@ function PMA_printListItem($name, $listId = null, $url = null,
633633
echo ' target="' . $target . '"';
634634
}
635635
if (null != $a_id) {
636-
echo ' id="' . $a_id .'"';
636+
echo ' id="' . $a_id . '"';
637637
}
638638
if (null != $a_class) {
639-
echo ' class="' . $a_class .'"';
639+
echo ' class="' . $a_class . '"';
640640
}
641641
echo '>';
642642
}

pmd_general.php

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ class="M_butt last" target="_self">
257257
if (isset($_REQUEST['query'])) {
258258
echo '<td class="select_all">';
259259
echo '<input type="checkbox" value="select_all_'
260-
.htmlspecialchars($t_n_url).'" style="margin: 0px;" ';
261-
echo 'id="select_all_'.htmlspecialchars($t_n_url).'" title="select all" ';
262-
echo 'onclick="Select_all(\''. htmlspecialchars($t_n_url) .'\',\''
263-
.htmlspecialchars($GLOBALS['PMD_OUT']["OWNER"][$i]).'\')"></td>';
260+
. htmlspecialchars($t_n_url) . '" style="margin: 0px;" ';
261+
echo 'id="select_all_' . htmlspecialchars($t_n_url) . '" title="select all" ';
262+
echo 'onclick="Select_all(\'' . htmlspecialchars($t_n_url) . '\',\''
263+
. htmlspecialchars($GLOBALS['PMD_OUT']["OWNER"][$i]) . '\')"></td>';
264264
}
265265
?>
266266
<td class="small_tab" onmouseover="this.className='small_tab2';"
@@ -292,11 +292,11 @@ class="M_butt last" target="_self">
292292
<?php
293293
if (isset($_REQUEST['query'])) {
294294
echo '<td class="tab_zag" onmouseover="Table_onover(\''
295-
.htmlspecialchars($t_n_url).'\',0,1)" id="id_zag_'
296-
.htmlspecialchars($t_n_url).'_2"';
295+
. htmlspecialchars($t_n_url) . '\',0,1)" id="id_zag_'
296+
. htmlspecialchars($t_n_url) . '_2"';
297297
echo 'onmousedown="cur_click=document.getElementById(\''
298-
.htmlspecialchars($t_n_url).'\');"';
299-
echo 'onmouseout="Table_onover(\''.htmlspecialchars($t_n_url).'\',1,1)">';
298+
. htmlspecialchars($t_n_url) . '\');"';
299+
echo 'onmouseout="Table_onover(\'' . htmlspecialchars($t_n_url) . '\',1,1)">';
300300
}
301301
?>
302302
</tr>
@@ -331,34 +331,34 @@ class="M_butt last" target="_self">
331331
onmouseout="this.className = old_class;"
332332
onmousedown="Click_field('<?php
333333
echo $GLOBALS['PMD_URL']["TABLE_NAME_SMALL"][$i]."','"
334-
.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j])."',";
334+
. urlencode($tab_column[$t_n]["COLUMN_NAME"][$j])."',";
335335
if (!PMA_Util::isForeignKeySupported($GLOBALS['PMD']['TABLE_TYPE'][$i])) {
336336
echo (isset($tables_pk_or_unique_keys[$t_n . "." . $tab_column[$t_n]["COLUMN_NAME"][$j]]) ? 1 : 0);
337337
} else {
338338
// if foreign keys are supported, it's not necessary that the
339339
// index is a primary key
340-
echo (isset($tables_all_keys[$t_n.".".$tab_column[$t_n]["COLUMN_NAME"][$j]]) ? 1 : 0);
340+
echo (isset($tables_all_keys[$t_n . "." . $tab_column[$t_n]["COLUMN_NAME"][$j]]) ? 1 : 0);
341341
}
342342
?>)">
343343
<?php
344344
if (isset($_REQUEST['query'])) {
345345
echo '<td class="select_all">';
346-
echo '<input value="'.htmlspecialchars($t_n_url)
347-
.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'"';
348-
echo 'type="checkbox" id="select_'.htmlspecialchars($t_n_url).'._'
349-
.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'" ';
350-
echo 'style="margin: 0px;" title="select_'
351-
.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'" ';
346+
echo '<input value="' . htmlspecialchars($t_n_url)
347+
. urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]) . '"';
348+
echo 'type="checkbox" id="select_' . htmlspecialchars($t_n_url) . '._'
349+
. urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]) . '" ';
350+
echo 'style="margin: 0px;" title="select_'
351+
. urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]) . '" ';
352352
echo 'onclick="store_column(\''
353-
.urlencode($GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i]).'\',\''
354-
.htmlspecialchars($GLOBALS['PMD_OUT']["OWNER"][$i]).'\',\''
355-
.urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]).'\')"></td>';
353+
. urlencode($GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i]) . '\',\''
354+
. htmlspecialchars($GLOBALS['PMD_OUT']["OWNER"][$i]) . '\',\''
355+
. urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]) . '\')"></td>';
356356
}?>
357357
<td width="10px" colspan="3"
358-
id="<?php echo $t_n_url.".".urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]) ?>">
358+
id="<?php echo $t_n_url . "." . urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]) ?>">
359359
<div class="nowrap">
360360
<?php
361-
if (isset($tables_pk_or_unique_keys[$t_n.".".$tab_column[$t_n]["COLUMN_NAME"][$j]])) {
361+
if (isset($tables_pk_or_unique_keys[$t_n . "." . $tab_column[$t_n]["COLUMN_NAME"][$j]])) {
362362
?>
363363
<img src="<?php echo $_SESSION['PMA_Theme']->getImgPath(); ?>pmd/FieldKey_small.png"
364364
alt="*" />
@@ -399,7 +399,7 @@ class="M_butt last" target="_self">
399399
echo 'onmouseout="this.className=\'small_tab_pref\';"';
400400
echo 'onclick="Click_option(\'pmd_optionse\',\''
401401
. urlencode($tab_column[$t_n]["COLUMN_NAME"][$j]) . '\',\''
402-
. $GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i].'\')" >';
402+
. $GLOBALS['PMD_OUT']["TABLE_NAME_SMALL"][$i] . '\')" >';
403403
echo '<img src="'
404404
. $_SESSION['PMA_Theme']->getImgPath('pmd/exec_small.png')
405405
. '" title="options" alt="" /></td> ';

pmd_pdf.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@
7575
if ('import' == $_POST['mode']) {
7676
PMA_queryAsControlUser(
7777
'UPDATE ' . $pma_table . ',' . $pmd_table .
78-
' SET ' . $pmd_table . '.`x`= ' . $pma_table . '.`x` * '. $scale_q . ',
79-
' . $pmd_table . '.`y`= ' . $pma_table . '.`y` * '. $scale_q .'
78+
' SET ' . $pmd_table . '.`x`= ' . $pma_table . '.`x` * ' . $scale_q . ',
79+
' . $pmd_table . '.`y`= ' . $pma_table . '.`y` * ' . $scale_q . '
8080
WHERE
8181
' . $pmd_table . '.`db_name`=' . $pma_table . '.`db_name`
8282
AND
8383
' . $pmd_table . '.`table_name` = ' . $pma_table . '.`table_name`
8484
AND
85-
' . $pmd_table . '.`db_name`=\''. PMA_Util::sqlAddSlashes($db) . '\'
85+
' . $pmd_table . '.`db_name`=\'' . PMA_Util::sqlAddSlashes($db) . '\'
8686
AND pdf_page_number = ' . $pdf_page_number_q . ';',
8787
true, PMA_DatabaseInterface::QUERY_STORE
8888
);

pmd_relation_new.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ function PMD_Return_new($b,$ret)
121121
global $db,$T1,$F1,$T2,$F2;
122122
header("Content-Type: text/xml; charset=utf-8");
123123
header("Cache-Control: no-cache");
124-
die('<root act="relation_new" return="'.$ret.'" b="'.$b.
125-
'" DB1="'.urlencode($db).
126-
'" T1="'.urlencode($T1).
127-
'" F1="'.urlencode($F1).
128-
'" DB2="'.urlencode($db).
129-
'" T2="'.urlencode($T2).
130-
'" F2="'.urlencode($F2).
124+
die('<root act="relation_new" return="' . $ret . '" b="' . $b .
125+
'" DB1="' . urlencode($db) .
126+
'" T1="' . urlencode($T1) .
127+
'" F1="' . urlencode($F1) .
128+
'" DB2="' . urlencode($db) .
129+
'" T2="' . urlencode($T2) .
130+
'" F2="' . urlencode($F2) .
131131
'"></root>');
132132
}
133133
?>

pmd_relation_upd.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
PMA_queryAsControlUser(
5454
'DELETE FROM '
5555
. PMA_Util::backquote($GLOBALS['cfgRelation']['db']) . '.'
56-
. $cfg['Server']['relation'].' WHERE '
56+
. $cfg['Server']['relation'] . ' WHERE '
5757
. 'master_db = \'' . PMA_Util::sqlAddSlashes($DB2) . '\''
5858
. ' AND master_table = \'' . PMA_Util::sqlAddSlashes($T2) . '\''
5959
. ' AND master_field = \'' . PMA_Util::sqlAddSlashes($F2) . '\''

user_password.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -234,9 +234,9 @@ function PMA_changePassDisplayPage($message, $sql_query, $_url_params)
234234
echo PMA_Util::getMessage(
235235
$message, $sql_query, 'success'
236236
);
237-
echo '<a href="index.php'.PMA_URL_getCommon($_url_params)
238-
.' target="_parent">'. "\n"
239-
.'<strong>'.__('Back').'</strong></a>';
237+
echo '<a href="index.php' . PMA_URL_getCommon($_url_params)
238+
. ' target="_parent">' . "\n"
239+
. '<strong>' . __('Back') . '</strong></a>';
240240
exit;
241241
}
242242
?>

0 commit comments

Comments
 (0)