From fe95c8988d0616a5bb93805c9bcbf5c710b87e8e Mon Sep 17 00:00:00 2001 From: Rouslan Placella Date: Sun, 9 Dec 2012 23:42:31 +0000 Subject: phpcs fixes --- server_status_variables.php | 44 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 8 deletions(-) (limited to 'server_status_variables.php') diff --git a/server_status_variables.php b/server_status_variables.php index 06486ca8ea..ba1caaa884 100644 --- a/server_status_variables.php +++ b/server_status_variables.php @@ -1,6 +1,7 @@ addHTML(''); exit; +/** + * Returns the html for the list filter + * + * @param Object $ServerStatusData An instance of the PMA_ServerStatusData class + * + * @return string + */ function getFilterHtml($ServerStatusData) { - $filterAlert = ''; if (! empty($_REQUEST['filterAlert'])) { $filterAlert = ' checked="checked"'; @@ -88,7 +95,9 @@ function getFilterHtml($ServerStatusData) foreach ($ServerStatusData->sections as $section_id => $section_name) { if (isset($ServerStatusData->categoryUsed[$section_id])) { - if (! empty($_REQUEST['filterCategory']) && $_REQUEST['filterCategory'] == $section_id) { + if (! empty($_REQUEST['filterCategory']) + && $_REQUEST['filterCategory'] == $section_id + ) { $selected = ' selected="selected"'; } else { $selected = ''; @@ -111,10 +120,16 @@ function getFilterHtml($ServerStatusData) return $retval; } +/** + * Prints the suggestion links + * + * @param Object $ServerStatusData An instance of the PMA_ServerStatusData class + * + * @return string + */ function getLinkSuggestionsHtml($ServerStatusData) { - $retval = ''; - $retval .= '