From b2243f08a89c069fba04a5deb87e5c94f17c7fe2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 27 Apr 2012 11:30:07 +0200 Subject: [PATCH] Fix spacing around brackets --- db_datadict.php | 2 +- libraries/config/FormDisplay.tpl.php | 2 +- libraries/export/json.php | 2 +- libraries/sysinfo.lib.php | 2 +- libraries/tbl_properties.inc.php | 2 +- navigation.php | 2 +- tbl_tracking.php | 2 +- test/libraries/common/PMA_checkParameters_test.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/db_datadict.php b/db_datadict.php index 54f579a1a4..cf77a38904 100644 --- a/db_datadict.php +++ b/db_datadict.php @@ -270,7 +270,7 @@ foreach ($tables as $table) { 0){ + if (count(PMA_Index::getFromTable($table, $db)) > 0) { echo PMA_Index::getView($table, $db, true); } ?> diff --git a/libraries/config/FormDisplay.tpl.php b/libraries/config/FormDisplay.tpl.php index f13bc5bfbf..b019261ee4 100644 --- a/libraries/config/FormDisplay.tpl.php +++ b/libraries/config/FormDisplay.tpl.php @@ -192,7 +192,7 @@ function display_input($path, $name, $description = '', $type, $value, $value_is - + diff --git a/libraries/export/json.php b/libraries/export/json.php index 0d65e175c6..46e7557f1c 100644 --- a/libraries/export/json.php +++ b/libraries/export/json.php @@ -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; } diff --git a/libraries/sysinfo.lib.php b/libraries/sysinfo.lib.php index 1d5d49db3a..a0538c63c7 100644 --- a/libraries/sysinfo.lib.php +++ b/libraries/sysinfo.lib.php @@ -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']; diff --git a/libraries/tbl_properties.inc.php b/libraries/tbl_properties.inc.php index 9c2bd73344..0c81beaa94 100644 --- a/libraries/tbl_properties.inc.php +++ b/libraries/tbl_properties.inc.php @@ -701,7 +701,7 @@ if ($action == 'tbl_create.php') {   - :  + 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 diff --git a/tbl_tracking.php b/tbl_tracking.php index bb96c81cf7..0c2b4c460c 100644 --- a/tbl_tracking.php +++ b/tbl_tracking.php @@ -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.'), diff --git a/test/libraries/common/PMA_checkParameters_test.php b/test/libraries/common/PMA_checkParameters_test.php index 4321e74cbd..e68ccebd0e 100644 --- a/test/libraries/common/PMA_checkParameters_test.php +++ b/test/libraries/common/PMA_checkParameters_test.php @@ -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')); }