Skip to content

Commit

Permalink
Spaces around . operator
Browse files Browse the repository at this point in the history
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
  • Loading branch information
madhuracj committed Jan 8, 2014
1 parent 6335b10 commit 84e9ce4
Show file tree
Hide file tree
Showing 19 changed files with 59 additions and 56 deletions.
6 changes: 3 additions & 3 deletions libraries/display_import.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function PMA_getHtmlForHiddenInputs($import_type, $db, $table)
$html .= PMA_URL_getHiddenInputs($db, $table, 1);
}
$html .= ' <input type="hidden" name="import_type" value="'
. $import_type . '" />'."\n";
. $import_type . '" />' . "\n";

return $html;
}
Expand Down Expand Up @@ -483,7 +483,7 @@ function PMA_getHtmlForImportWithPlugin($upload_id)
$html .= ' complete = response.complete; ';

$html .= ' if (total==0 && complete==0 && percent==0) { ';
$img_tag = '<img src="'. $GLOBALS['pmaThemeImage'] . 'ajax_clock_small.gif"';
$img_tag = '<img src="' . $GLOBALS['pmaThemeImage'] . 'ajax_clock_small.gif"';
$html .= ' $("#upload_form_status_info").html(\''
. $img_tag . ' width="16" height="16" alt="ajax clock" /> '
. $promot_str . '\'); ';
Expand All @@ -507,7 +507,7 @@ function PMA_getHtmlForImportWithPlugin($upload_id)
. '<div class="upload_progress_bar_outer"><div class="percentage">'
. '</div><div id="status" class="upload_progress_bar_inner">'
. '<div class="percentage"></div></div></div><div>'
. '<img src="'. $GLOBALS['pmaThemeImage']
. '<img src="' . $GLOBALS['pmaThemeImage']
. 'ajax_clock_small.gif" width="16" height="16" alt="ajax clock" /> '
. $upload_str . '</div><div id="statustext"></div></div>\') ';
$html .= ' .show(); ';
Expand Down
2 changes: 1 addition & 1 deletion libraries/file_listing.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ function PMA_getFileSelectOptions($dir, $extensions = '', $active = '')
}
$result = '';
foreach ($list as $val) {
$result .= '<option value="'. htmlspecialchars($val) . '"';
$result .= '<option value="' . htmlspecialchars($val) . '"';
if ($val == $active) {
$result .= ' selected="selected"';
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/gis/pma_gis_multipolygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public function generateWkt($gis_data, $index, $empty = '')
? $data_row[$k][$i][$j]['x'] : $empty)
. ' ' . ((isset($data_row[$k][$i][$j]['y'])
&& trim($data_row[$k][$i][$j]['y']) != '')
? $data_row[$k][$i][$j]['y'] : $empty) .',';
? $data_row[$k][$i][$j]['y'] : $empty) . ',';
}
$wkt = substr($wkt, 0, strlen($wkt) - 1);
$wkt .= '),';
Expand Down
2 changes: 1 addition & 1 deletion libraries/gis/pma_gis_polygon.php
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ public function generateWkt($gis_data, $index, $empty = '')
? $gis_data[$index]['POLYGON'][$i][$j]['x'] : $empty)
. ' ' . ((isset($gis_data[$index]['POLYGON'][$i][$j]['y'])
&& trim($gis_data[$index]['POLYGON'][$i][$j]['y']) != '')
? $gis_data[$index]['POLYGON'][$i][$j]['y'] : $empty) .',';
? $gis_data[$index]['POLYGON'][$i][$j]['y'] : $empty) . ',';
}
$wkt = substr($wkt, 0, strlen($wkt) - 1);
$wkt .= '),';
Expand Down
20 changes: 10 additions & 10 deletions libraries/insert_edit.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ function PMA_dispRowForeignData($backup_field, $column_name_appendix,
$html_output .= '<select name="fields' . $column_name_appendix . '"'
. ' ' . $unnullify_trigger
. ' class="textfield"'
. ' tabindex="' . ($tabindex + $tabindex_for_value). '"'
. ' tabindex="' . ($tabindex + $tabindex_for_value) . '"'
. ' id="field_' . $idindex . '_3">';
$html_output .= PMA_foreignDropdown(
$foreignData['disp_row'], $foreignData['foreign_field'],
Expand Down Expand Up @@ -871,7 +871,7 @@ function PMA_getPmaTypeEnum($column, $backup_field, $column_name_appendix,
}
$column_enum_values = $column['values'];
$html_output .= '<input type="hidden" name="fields_type'
. $column_name_appendix. '" value="enum" />';
. $column_name_appendix . '" value="enum" />';
$html_output .= '<input type="hidden" name="fields'
. $column_name_appendix . '" value="" />';
$html_output .= "\n" . ' ' . $backup_field . "\n";
Expand Down Expand Up @@ -1105,7 +1105,7 @@ function PMA_getBinaryAndBlobColumn(
$data_size = PMA_Util::formatByteDown(
strlen(stripslashes($data)), 3, 1
);
$html_output .= ' ('. $data_size[0] . ' ' . $data_size[1] . ')';
$html_output .= ' (' . $data_size[0] . ' ' . $data_size[1] . ')';
unset($data_size);
}
$html_output .= '<input type="hidden" name="fields_type'
Expand Down Expand Up @@ -1191,12 +1191,12 @@ function PMA_getHTMLinput($column, $column_name_appendix, $special_chars,
. 'max="' . $min_max_values[1] . '" ';
}
return '<input type="' . $input_type . '"'
. ' name="fields'. $column_name_appendix . '"'
. ' name="fields' . $column_name_appendix . '"'
. ' value="' . $special_chars . '" size="' . $fieldsize . '"'
. ($input_min_max !== false ? ' ' . $input_min_max : '')
. ($input_type === 'time' ? ' step="1"' : '')
. ' class="' . $the_class . '" ' . $unnullify_trigger
. ' tabindex="' . ($tabindex + $tabindex_for_value). '"'
. ' tabindex="' . ($tabindex + $tabindex_for_value) . '"'
. ' id="field_' . ($idindex) . '_3" />';
}

Expand Down Expand Up @@ -1422,7 +1422,7 @@ function PMA_getContinueInsertionForm($table, $db, $where_clause_array, $err_url

$html_output .= '<input type="hidden"'
. ' name="where_clause[' . $key_id . ']"'
. ' value="' . htmlspecialchars(trim($where_clause)) . '" />'. "\n";
. ' value="' . htmlspecialchars(trim($where_clause)) . '" />' . "\n";
}
}
$tmp = '<select name="insert_rows" id="insert_rows">' . "\n";
Expand Down Expand Up @@ -1612,7 +1612,7 @@ function PMA_getHeadAndFootOfInsertRowTable($url_params)
$html_output .= PMA_showFunctionFieldsInEditMode($url_params, true);
}

$html_output .= '<th>'. __('Null') . '</th>'
$html_output .= '<th>' . __('Null') . '</th>'
. '<th>' . __('Value') . '</th>'
. '</tr>'
. '</thead>'
Expand Down Expand Up @@ -2414,7 +2414,7 @@ function PMA_verifyWhetherValueCanBeTruncatedAndAppendExtraData(

$extra_data['isNeedToRecheck'] = true;

$sql_for_real_value = 'SELECT '. PMA_Util::backquote($table) . '.'
$sql_for_real_value = 'SELECT ' . PMA_Util::backquote($table) . '.'
. PMA_Util::backquote($column_name)
. ' FROM ' . PMA_Util::backquote($db) . '.'
. PMA_Util::backquote($table)
Expand Down Expand Up @@ -2593,7 +2593,7 @@ function PMA_getHtmlForIgnoreOption($row_id)
return '<input type="checkbox" checked="checked"'
. ' name="insert_ignore_' . $row_id . '"'
. ' id="insert_ignore_' . $row_id . '" />'
.'<label for="insert_ignore_' . $row_id . '">'
. '<label for="insert_ignore_' . $row_id . '">'
. __('Ignore')
. '</label><br />' . "\n";
}
Expand Down Expand Up @@ -2726,7 +2726,7 @@ function PMA_getHtmlForInsertEditFormColumn($table_columns, $i, $column,
$unnullify_trigger = $chg_evt_handler
. "=\"return verificationsAfterFieldChange('"
. PMA_escapeJsString($column['Field_md5']) . "', '"
. PMA_escapeJsString($jsvkey) . "','".$column['pma_type'] . "')\"";
. PMA_escapeJsString($jsvkey) . "','" . $column['pma_type'] . "')\"";

// Use an MD5 as an array index to avoid having special characters
// in the name atttibute (see bug #1746964 )
Expand Down
18 changes: 9 additions & 9 deletions libraries/operations.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function PMA_getHtmlForRenameDatabase($db)
if (isset($_REQUEST['db_collation'])) {
$html_output .= '<input type="hidden" name="db_collation" '
. 'value="' . $_REQUEST['db_collation']
.'" />' . "\n";
. '" />' . "\n";
}
$html_output .= '<input type="hidden" name="what" value="data" />'
. '<input type="hidden" name="db_rename" value="true" />'
Expand Down Expand Up @@ -162,7 +162,7 @@ function PMA_getHtmlForCopyDatabase($db)

if (isset($_REQUEST['db_collation'])) {
$html_output .= '<input type="hidden" name="db_collation" '
. 'value="' . $_REQUEST['db_collation'] .'" />' . "\n";
. 'value="' . $_REQUEST['db_collation'] . '" />' . "\n";
}
$html_output .= '<input type="hidden" name="db_copy" value="true" />' . "\n"
. PMA_URL_getHiddenInputs($db);
Expand Down Expand Up @@ -927,8 +927,8 @@ function PMA_getHtmlForTableRow($attribute, $label, $val)
{
return '<tr>'
. '<td><label for="' . $attribute . '">' . $label . '</label></td>'
. '<td><input type="checkbox" name="'. $attribute .'"'
. ' id="' . $attribute .'"'
. '<td><input type="checkbox" name="' . $attribute . '"'
. ' id="' . $attribute . '"'
. ' value="1"'
. ((!empty($val) && $val == 1) ? ' checked="checked"' : '') . '/></td>'
. '</tr>';
Expand Down Expand Up @@ -1009,7 +1009,7 @@ function PMA_getHtmlForCopytable()
if (count($GLOBALS['pma']->databases) > $GLOBALS['cfg']['MaxDbList']) {
$html_output .= '<input class="halfWidth" type="text" maxlength="100" '
. 'size="30" name="target_db" '
. 'value="'. htmlspecialchars($GLOBALS['db']) . '"/>';
. 'value="' . htmlspecialchars($GLOBALS['db']) . '"/>';
} else {
$html_output .= '<select class="halfWidth" name="target_db">'
. $GLOBALS['pma']->databases->getHtmlOptions(true, false)
Expand All @@ -1018,7 +1018,7 @@ function PMA_getHtmlForCopytable()
$html_output .= '&nbsp;<strong>.</strong>&nbsp;';
$html_output .= '<input class="halfWidth" type="text" required '
. 'size="20" name="new_name" onfocus="this.select()" '
. 'value="'. htmlspecialchars($GLOBALS['table']) . '"/><br />';
. 'value="' . htmlspecialchars($GLOBALS['table']) . '"/><br />';

$choices = array(
'structure' => __('Structure only'),
Expand All @@ -1044,7 +1044,7 @@ function PMA_getHtmlForCopytable()
$html_output .= '<input type="checkbox" name="add_constraints" '
. 'value="1" id="checkbox_constraints" />';
$html_output .= '<label for="checkbox_constraints">'
.__('Add constraints') . '</label><br />';
. __('Add constraints') . '</label><br />';
} // endif

if (isset($_COOKIE['pma_switch_to_new'])
Expand All @@ -1063,7 +1063,7 @@ function PMA_getHtmlForCopytable()
. '</fieldset>';

$html_output .= '<fieldset class="tblFooters">'
. '<input type="submit" name="submit_copy" value="' .__('Go') . '" />'
. '<input type="submit" name="submit_copy" value="' . __('Go') . '" />'
. '</fieldset>'
. '</form>'
. '</div>';
Expand Down Expand Up @@ -1222,7 +1222,7 @@ function PMA_getMaintainActionlink($action, $params, $url_params, $link)
return '<li>'
. '<a class="maintain_action ajax" '
. 'href="sql.php'
. PMA_URL_getCommon(array_merge($url_params, $params)) .'">'
. PMA_URL_getCommon(array_merge($url_params, $params)) . '">'
. $action
. '</a>'
. PMA_Util::showMySQLDocu($link)
Expand Down
2 changes: 1 addition & 1 deletion libraries/plugin_interface.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ function PMA_pluginGetChoice($section, $name, &$list, $cfgname = null)
} else {
$ret .= 'false';
}
$ret .= '" />'. "\n";
$ret .= '" />' . "\n";
}

return $ret;
Expand Down
2 changes: 1 addition & 1 deletion libraries/plugins/auth/AuthenticationSignon.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public function authCheck()
if (! file_exists($script_name)) {
PMA_fatalError(
__('Can not find signon authentication script:')
. ' '. $script_name
. ' ' . $script_name
);
}
include $script_name;
Expand Down
10 changes: 5 additions & 5 deletions libraries/plugins/export/PMA_ExportPdf.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -205,11 +205,11 @@ function morepagestable($lineheight = 8)
$l += $this->tablewidths[$col];
}

if (! isset($tmpheight[$row.'-'.$this->page])) {
$tmpheight[$row.'-'.$this->page] = 0;
if (! isset($tmpheight[$row . '-' . $this->page])) {
$tmpheight[$row . '-' . $this->page] = 0;
}
if ($tmpheight[$row.'-'.$this->page] < $this->GetY()) {
$tmpheight[$row.'-'.$this->page] = $this->GetY();
if ($tmpheight[$row . '-' . $this->page] < $this->GetY()) {
$tmpheight[$row . '-' . $this->page] = $this->GetY();
}
if ($this->page > $maxpage) {
$maxpage = $this->page;
Expand All @@ -218,7 +218,7 @@ function morepagestable($lineheight = 8)
}

// get the height we were in the last used page
$h = $tmpheight[$row.'-'.$maxpage];
$h = $tmpheight[$row . '-' . $maxpage];
// set the "pointer" to the left margin
$l = $this->lMargin;
// set the $currpage to the last page
Expand Down
11 changes: 7 additions & 4 deletions libraries/pmd_common.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ function PMA_getScriptContr()
if ($row !== false) {
foreach ($row as $field => $value) {
$con['C_NAME'][$i] = '';
$con['DTN'][$i] = urlencode($GLOBALS['db'].".".$val[0]);
$con['DTN'][$i] = urlencode($GLOBALS['db'] . "." . $val[0]);
$con['DCN'][$i] = urlencode($field);
$con['STN'][$i] = urlencode(
$value['foreign_db'].".".$value['foreign_table']
$value['foreign_db'] . "." . $value['foreign_table']
);
$con['SCN'][$i] = urlencode($value['foreign_field']);
$i++;
Expand Down Expand Up @@ -207,7 +207,7 @@ function PMA_getAllKeys($unique_only = false)
}
$columns = $index->getColumns();
foreach ($columns as $column_name => $dummy) {
$keys[$schema . '.' .$table . '.' . $column_name] = 1;
$keys[$schema . '.' . $table . '.' . $column_name] = 1;
}
}
}
Expand Down Expand Up @@ -283,6 +283,9 @@ function PMA_returnUpd($b, $ret)

header("Content-Type: text/xml; charset=utf-8");
header("Cache-Control: no-cache");
die('<root act="relation_upd" return="'.$ret.'" b="'.$b.'" K="'.$K.'"></root>');
die(
'<root act="relation_upd" return="' . $ret . '" b="'
. $b . '" K="' . $K . '"></root>'
);
}
?>
10 changes: 5 additions & 5 deletions libraries/replication_gui.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ function PMA_getHtmlForMasterConfiguration()
$html .= __(
'Now, add the following lines at the end of [mysqld] section'
. ' in your my.cnf and please restart the MySQL server afterwards.'
). '<br />';
) . '<br />';
$html .= '<pre id="rep"></pre>';
$html .= __(
'Once you restarted MySQL server, please click on Go button. '
Expand Down Expand Up @@ -217,12 +217,12 @@ function PMA_getHtmlForSlaveConfiguration(
$html .= __('Control slave:') . '</a>';
$html .= ' <div id="slave_control_gui" style="display: none">';
$html .= ' <ul>';
$html .= ' <li><a href="'. $slave_control_full_link . '">';
$html .= ' <li><a href="' . $slave_control_full_link . '">';
$html .= (($server_slave_replication[0]['Slave_IO_Running'] == 'No' ||
$server_slave_replication[0]['Slave_SQL_Running'] == 'No')
? __('Full start')
: __('Full stop')) . ' </a></li>';
$html .= ' <li><a href="'. $slave_control_reset_link . '">';
$html .= ' <li><a href="' . $slave_control_reset_link . '">';
$html .= __('Reset slave') . '</a></li>';
if ($server_slave_replication[0]['Slave_SQL_Running'] == 'No') {
$html .= ' <li><a href="' . $slave_control_sql_link . '">';
Expand Down Expand Up @@ -451,7 +451,7 @@ function PMA_getHtmlForAddUserInputDiv($label_array, $input_array)

$html .= ' <input ';
foreach ($input_array as $key=>$value) {
$html .= ' ' . $key . '="' . $value. '" ';
$html .= ' ' . $key . '="' . $value . '" ';
}
$html .= ' />';
$html .= ' </div>';
Expand Down Expand Up @@ -1049,7 +1049,7 @@ function PMA_handleRequestForSlaveSkipError()

$qStop = PMA_Replication_Slave_control("STOP");
$qSkip = $GLOBALS['dbi']->tryQuery(
"SET GLOBAL SQL_SLAVE_SKIP_COUNTER = ".$count.";"
"SET GLOBAL SQL_SLAVE_SKIP_COUNTER = " . $count . ";"
);
$qStart = PMA_Replication_Slave_control("START");

Expand Down
2 changes: 1 addition & 1 deletion libraries/rte/rte_events.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function PMA_EVN_handleEditor()
. "AND EVENT_NAME='"
. PMA_Util::sqlAddSlashes($_REQUEST['item_name']) . "'";
$query = "SELECT " . $columns
. " FROM `INFORMATION_SCHEMA`.`EVENTS` WHERE " . $where. ";";
. " FROM `INFORMATION_SCHEMA`.`EVENTS` WHERE " . $where . ";";
$event = $GLOBALS['dbi']->fetchSingleRow($query);
$response->addJSON(
'name',
Expand Down
12 changes: 6 additions & 6 deletions libraries/rte/rte_routines.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -997,7 +997,7 @@ function PMA_RTN_getEditorForm($mode, $operation, $routine)
$retval .= " <input style='width: 49%;' type='button'";
$retval .= " name='routine_addparameter'";
$retval .= " value='" . __('Add parameter') . "' />";
$retval .= " <input style='width: 49%;".$disableRemoveParam."'";
$retval .= " <input style='width: 49%;" . $disableRemoveParam . "'";
$retval .= " type='submit' ";
$retval .= " name='routine_removeparameter'";
$retval .= " value='" . __('Remove last parameter') . "' />";
Expand All @@ -1013,7 +1013,7 @@ function PMA_RTN_getEditorForm($mode, $operation, $routine)
$retval .= "<tr class='routine_return_row" . $isfunction_class . "'>";
$retval .= " <td>" . __('Return length/values') . "</td>";
$retval .= " <td><input type='text' name='item_returnlength'";
$retval .= " value='".$routine['item_returnlength']."' /></td>";
$retval .= " value='" . $routine['item_returnlength'] . "' /></td>";
$retval .= " <td class='hide no_len'>---</td>";
$retval .= "</tr>";
$retval .= "<tr class='routine_return_row" . $isfunction_class . "'>";
Expand Down Expand Up @@ -1055,7 +1055,7 @@ function PMA_RTN_getEditorForm($mode, $operation, $routine)
$retval .= "<tr>";
$retval .= " <td>" . __('Definer') . "</td>";
$retval .= " <td><input type='text' name='item_definer'";
$retval .= " value='".$routine['item_definer']."' /></td>";
$retval .= " value='" . $routine['item_definer'] . "' /></td>";
$retval .= "</tr>";
$retval .= "<tr>";
$retval .= " <td>" . __('Security type') . "</td>";
Expand All @@ -1081,17 +1081,17 @@ function PMA_RTN_getEditorForm($mode, $operation, $routine)
$retval .= "<tr>";
$retval .= " <td>" . __('Comment') . "</td>";
$retval .= " <td><input type='text' name='item_comment' maxlength='64'";
$retval .= " value='" . $routine['item_comment']."' /></td>";
$retval .= " value='" . $routine['item_comment'] . "' /></td>";
$retval .= "</tr>";
$retval .= "</table>";
$retval .= "</fieldset>";
if ($GLOBALS['is_ajax_request']) {
$retval .= "<input type='hidden' name='editor_process_".$mode."'";
$retval .= "<input type='hidden' name='editor_process_" . $mode . "'";
$retval .= " value='true' />";
$retval .= "<input type='hidden' name='ajax_request' value='true' />";
} else {
$retval .= "<fieldset class='tblFooters'>";
$retval .= " <input type='submit' name='editor_process_".$mode."'";
$retval .= " <input type='submit' name='editor_process_" . $mode . "'";
$retval .= " value='" . __('Go') . "' />";
$retval .= "</fieldset>";
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/schema/Dia_Relation_Schema.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public function tableDraw($changeColor)
</dia:attribute>
<dia:attribute name="obj_bb">
<dia:rectangle val="'
.($this->x * $factor) . ',' . ($this->y * $factor) . ';9.97,9.2"/>
. ($this->x * $factor) . ',' . ($this->y * $factor) . ';9.97,9.2"/>
</dia:attribute>
<dia:attribute name="meta">
<dia:composite type="dict"/>
Expand Down
Loading

0 comments on commit 84e9ce4

Please sign in to comment.