Fix spacing around brackets

This commit is contained in:
Michal Čihař 2012-04-27 11:30:07 +02:00
parent a5839a3813
commit b2243f08a8
8 changed files with 8 additions and 8 deletions

View File

@ -270,7 +270,7 @@ foreach ($tables as $table) {
</table>
<?php
// display indexes information
if (count(PMA_Index::getFromTable($table, $db)) > 0){
if (count(PMA_Index::getFromTable($table, $db)) > 0) {
echo PMA_Index::getView($table, $db, true);
}
?>

View File

@ -192,7 +192,7 @@ function display_input($path, $name, $description = '', $type, $value, $value_is
<?php if (!empty($opts['doc']) || !empty($opts['wiki'])) { ?>
<span class="doc">
<?php if (!empty($opts['doc'])) { ?><a href="<?php echo $base_dir . $opts['doc'] ?>" target="documentation"><?php echo $icons['help']; ?></a><?php } ?>
<?php if (!empty($opts['wiki'])){ ?><a href="<?php echo $opts['wiki'] ?>" target="wiki"><?php echo $icons['info']; ?></a><?php } ?>
<?php if (!empty($opts['wiki'])) { ?><a href="<?php echo $opts['wiki'] ?>" target="wiki"><?php echo $icons['info']; ?></a><?php } ?>
</span>
<?php } ?>
<?php if ($option_is_disabled) { ?>

View File

@ -74,7 +74,7 @@ if (isset($plugin_list)) {
*/
function PMA_exportDBHeader($db)
{
PMA_exportOutputHandler('// Database \'' . $db . '\'' . $GLOBALS['crlf'] );
PMA_exportOutputHandler('// Database \'' . $db . '\'' . $GLOBALS['crlf']);
return true;
}

View File

@ -126,7 +126,7 @@ class Linux
{
preg_match_all('/^(MemTotal|MemFree|Cached|Buffers|SwapCached|SwapTotal|SwapFree):\s+(.*)\s*kB/im', file_get_contents('/proc/meminfo'), $matches);
$mem = array_combine( $matches[1], $matches[2] );
$mem = array_combine($matches[1], $matches[2]);
$mem['MemUsed'] = $mem['MemTotal'] - $mem['MemFree'] - $mem['Cached'] - $mem['Buffers'];
$mem['SwapUsed'] = $mem['SwapTotal'] - $mem['SwapFree'] - $mem['SwapCached'];

View File

@ -701,7 +701,7 @@ if ($action == 'tbl_create.php') {
<?php echo PMA_showMySQLDocu('Storage_engines', 'Storage_engines'); ?>
</th>
<td width="25">&nbsp;</td>
<th><?php echo __('Collation') ;?>:&nbsp;</th>
<th><?php echo __('Collation');?>:&nbsp;</th>
</tr>
<tr><td><input type="text" name="comment" size="40" maxlength="80"
value="<?php echo (isset($_REQUEST['comment']) ? htmlspecialchars($_REQUEST['comment']) : ''); ?>"

View File

@ -29,7 +29,7 @@ require_once 'libraries/RecentTable.class.php';
* Check if it is an ajax request to reload the recent tables list.
*/
if ($GLOBALS['is_ajax_request'] && $_REQUEST['recent_table']) {
PMA_ajaxResponse('', true, array('options' => PMA_RecentTable::getInstance()->getHtmlSelectOption()) );
PMA_ajaxResponse('', true, array('options' => PMA_RecentTable::getInstance()->getHtmlSelectOption()));
}
// keep the offset of the db list in session before closing it

View File

@ -172,7 +172,7 @@ if (isset($_REQUEST['submit_create_version'])) {
}
$tracking_set = rtrim($tracking_set, ',');
if (PMA_Tracker::createVersion($GLOBALS['db'], $GLOBALS['table'], $_REQUEST['version'], $tracking_set )) {
if (PMA_Tracker::createVersion($GLOBALS['db'], $GLOBALS['table'], $_REQUEST['version'], $tracking_set)) {
$msg = PMA_Message::success(
sprintf(
__('Version %1$s was created, tracking for %2$s is active.'),

View File

@ -34,7 +34,7 @@ class PMA_checkParameters_test extends PHPUnit_Framework_TestCase
$GLOBALS['PMA_PHP_SELF'] = PMA_getenv('PHP_SELF');
$GLOBALS['pmaThemePath'] = $_SESSION['PMA_Theme']->getPath();
$this->expectOutputRegex("/Missing parameter: field/" );
$this->expectOutputRegex("/Missing parameter: field/");
PMA_checkParameters(array('db', 'table', 'field'));
}