Fix spacing around brackets
This commit is contained in:
parent
a5839a3813
commit
b2243f08a8
@ -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);
|
||||
}
|
||||
?>
|
||||
|
||||
@ -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) { ?>
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
@ -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'];
|
||||
|
||||
|
||||
@ -701,7 +701,7 @@ if ($action == 'tbl_create.php') {
|
||||
<?php echo PMA_showMySQLDocu('Storage_engines', 'Storage_engines'); ?>
|
||||
</th>
|
||||
<td width="25"> </td>
|
||||
<th><?php echo __('Collation') ;?>: </th>
|
||||
<th><?php echo __('Collation');?>: </th>
|
||||
</tr>
|
||||
<tr><td><input type="text" name="comment" size="40" maxlength="80"
|
||||
value="<?php echo (isset($_REQUEST['comment']) ? htmlspecialchars($_REQUEST['comment']) : ''); ?>"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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.'),
|
||||
|
||||
@ -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'));
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user