diff --git a/import.php b/import.php index 6971b17b6c..d34a12b7c4 100644 --- a/import.php +++ b/import.php @@ -97,7 +97,7 @@ if (! empty($sql_query)) { '/^(CREATE|ALTER)\s+(VIEW|TABLE|DATABASE|SCHEMA)\s+/i', $sql_query )) { - $ajax_reload['reload'] = true; + $ajax_reload = array('reload' => true); } // do a dynamic reload if table is RENAMED @@ -107,8 +107,8 @@ if (! empty($sql_query)) { $sql_query, $rename_table_names )) { + $ajax_reload = array('reload' => true); $ajax_reload['table_name'] = PMA_Util::unQuote($rename_table_names[2]); - $ajax_reload['reload'] = true; } $sql_query = ''; @@ -299,6 +299,9 @@ if (! empty($id_bookmark)) { $import_text ) ) { + if (! isset($ajax_reload)) { + $ajax_reload = array(); + } $ajax_reload['reload'] = true; } break; diff --git a/libraries/Console.class.php b/libraries/Console.class.php index fa9e538208..102441ae7f 100644 --- a/libraries/Console.class.php +++ b/libraries/Console.class.php @@ -87,15 +87,15 @@ class PMA_Console { $output = ''; $cfgBookmark = PMA_Bookmark_getParams(); - if($cfgBookmark) { + if ($cfgBookmark) { - $tpl_bookmark_actions = - '' . __('Collapse') . ' ' - . '' . __('Expand') . ' ' - . '' . __('Requery') . ' ' - . '' . __('Reedit') . ' ' + $tpl_bookmark_actions + = '' . __('Collapse') . ' ' + . '' . __('Expand') . ' ' + . '' . __('Requery') . ' ' + . '' . __('Reedit') . ' ' // . '' . __('Delete') . ' ' - . '' . __('Database') . ': %s'; + . '' . __('Database') . ': %s'; $bookmarks = PMA_Bookmark_getList(); $output .= '
' @@ -129,7 +129,7 @@ class PMA_Console public function getDisplay() { $output = ''; - if((! $this->_isAjax) && $this->_isEnabled) { + if ((! $this->_isAjax) && $this->_isEnabled) { $cfgBookmark = PMA_Bookmark_getParams(); $this->_scripts->addFile('codemirror/lib/codemirror.js'); $this->_scripts->addFile('codemirror/mode/sql/sql.js'); @@ -141,15 +141,15 @@ class PMA_Console // The templates, use sprintf() to output them // There're white space at the end of every , // for double-click selection - $tpl_query_actions = - '' . __('Collapse') . ' ' - . '' . __('Expand') . ' ' - . '' . __('Requery') . ' ' - . '' . __('Reedit') . ' ' + $tpl_query_actions + = '' . __('Collapse') . ' ' + . '' . __('Expand') . ' ' + . '' . __('Requery') . ' ' + . '' . __('Reedit') . ' ' // . ($cfgBookmark ? '' . __('Bookmark') . ' ' : '') - . '' . __('Query failed') . ' ' - . '' . __('Database') . ': %s ' - . '' . __('Queried time') . ': %s '; + . '' . __('Query failed') . ' ' + . '' . __('Database') . ': %s ' + . '' . __('Queried time') . ': %s '; // Console toolbar $output .= ''; } } @@ -205,7 +211,7 @@ class PMA_Console // Bookmarks card: - if($cfgBookmark) { + if ($cfgBookmark) { $output .= '
'; $output .= '
' . '
' . __('Bookmarks') diff --git a/libraries/DBQbe.class.php b/libraries/DBQbe.class.php index edbb2d5fd7..6be893426b 100644 --- a/libraries/DBQbe.class.php +++ b/libraries/DBQbe.class.php @@ -118,7 +118,7 @@ class PMA_DbQbe * Minimum width of a column * * @access private - * @var string + * @var int */ private $_form_column_width; /** diff --git a/libraries/Menu.class.php b/libraries/Menu.class.php index 5e1cf4a9b6..148ab6c491 100644 --- a/libraries/Menu.class.php +++ b/libraries/Menu.class.php @@ -20,7 +20,7 @@ class PMA_Menu * Server id * * @access private - * @var string + * @var int */ private $_server; /** diff --git a/libraries/Response.class.php b/libraries/Response.class.php index c34cf23ddf..ca1fbdc0e1 100644 --- a/libraries/Response.class.php +++ b/libraries/Response.class.php @@ -86,7 +86,7 @@ class PMA_Response * Workaround for PHP bug * * @access private - * @var bool + * @var string|bool */ private $_CWD; diff --git a/libraries/config/ConfigFile.class.php b/libraries/config/ConfigFile.class.php index 0482a4e583..ba9640b336 100644 --- a/libraries/config/ConfigFile.class.php +++ b/libraries/config/ConfigFile.class.php @@ -66,7 +66,7 @@ class ConfigFile /** * Result for {@link _flattenArray()} - * @var array + * @var array|null */ private $_flattenArrayResult; diff --git a/libraries/plugins/export/ExportPdf.class.php b/libraries/plugins/export/ExportPdf.class.php index 08f88b76fd..34dead311c 100644 --- a/libraries/plugins/export/ExportPdf.class.php +++ b/libraries/plugins/export/ExportPdf.class.php @@ -240,7 +240,7 @@ class ExportPdf extends ExportPlugin /** * Instantiates the PMA_ExportPdf class * - * @param string $pdf PMA_ExportPdf instance + * @param PMA_ExportPdf $pdf The instance * * @return void */ diff --git a/libraries/relation.lib.php b/libraries/relation.lib.php index 690436214f..14c895112f 100644 --- a/libraries/relation.lib.php +++ b/libraries/relation.lib.php @@ -958,7 +958,7 @@ function PMA_getHistory($username) * history, use it */ if (! $GLOBALS['cfg']['QueryHistoryDB']) { - if(isset($_SESSION['sql_history'])) { + if (isset($_SESSION['sql_history'])) { return array_reverse($_SESSION['sql_history']); } return false;