Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed coding style

  • Loading branch information...
commit 16fcf1398371be76f2d649892e5b556c8cbd8849 1 parent 8b7ef92
Samith Dassanayake hisamith authored
20 index.php
View
@@ -122,7 +122,7 @@
) {
echo '<li id="li_select_server" class="no_bullets" >';
include_once 'libraries/select_server.lib.php';
- echo PMA_Util::getImage('s_host.png')." ".PMA_selectServer(true, true);
+ echo PMA_Util::getImage('s_host.png') . " " . PMA_selectServer(true, true);
echo '</li>';
}
@@ -137,7 +137,7 @@
if ($cfg['ShowChgPassword']) {
$conditional_class = 'ajax';
PMA_printListItem(
- PMA_Util::getImage('s_passwd.png')." ".__('Change password'),
+ PMA_Util::getImage('s_passwd.png') . " " . __('Change password'),
'li_change_password',
'user_password.php?' . $common_url_query,
null,
@@ -152,7 +152,8 @@
echo ' <form method="post" action="index.php">' . "\n"
. PMA_generate_common_hidden_inputs(null, null, 4, 'collation_connection')
. ' <label for="select_collation_connection">' . "\n"
- . ' '.PMA_Util::getImage('s_asci.png')." " . __('Server connection collation') . "\n"
+ . ' '. PMA_Util::getImage('s_asci.png') . " "
+ . __('Server connection collation') . "\n"
// put the doc link in the form so that it appears on the same line
. PMA_Util::showMySQLDocu(
'MySQL_Database_Administration',
@@ -185,7 +186,7 @@
if (empty($cfg['Lang']) && count($GLOBALS['available_languages']) > 1) {
echo '<li id="li_select_lang" class="no_bullets">';
include_once 'libraries/display_select_lang.lib.php';
- echo PMA_Util::getImage('s_lang.png')." ".PMA_getLanguageSelectorHtml();
+ echo PMA_Util::getImage('s_lang.png') . " " . PMA_getLanguageSelectorHtml();
echo '</li>';
}
@@ -193,7 +194,8 @@
if ($GLOBALS['cfg']['ThemeManager']) {
echo '<li id="li_select_theme" class="no_bullets">';
- echo PMA_Util::getImage('s_theme.png')." ".$_SESSION['PMA_Theme_Manager']->getHtmlSelectBox();
+ echo PMA_Util::getImage('s_theme.png') . " "
+ . $_SESSION['PMA_Theme_Manager']->getHtmlSelectBox();
echo '</li>';
}
echo '<li id="li_select_fontsize">';
@@ -210,10 +212,10 @@
PMA_Util::getImage('b_tblops.png')." " .__('More settings'),
'li_user_preferences',
'prefs_manage.php?' . $common_url_query,
- null,
- null,
- null,
- "no_bullets"
+ null,
+ null,
+ null,
+ "no_bullets"
);
echo '</ul>';
}
12 libraries/Message.class.php
View
@@ -78,7 +78,7 @@ class PMA_Message
PMA_Message::NOTICE => 'notice',
PMA_Message::ERROR => 'error',
);
-
+
/**
* The message number
*
@@ -728,18 +728,20 @@ public function isDisplayed($isDisplayed = false)
* Returns the message with corresponding image icon
*
* @param string $message the message(s)
+ *
* @return string message with icon
*/
- public function getMessageWithIcon($message){
+ public function getMessageWithIcon($message)
+ {
$image = '';
- if('error' == $this->getLevel()){
+ if ('error' == $this->getLevel()) {
$image = 's_error.png';
- } elseif('success' == $this->getLevel()){
+ } elseif ('success' == $this->getLevel()) {
$image = 's_success.png';
} else {
$image = 's_notice.png';
}
- $message = PMA_Message::notice(PMA_Util::getImage($image))." ".$message;
+ $message = PMA_Message::notice(PMA_Util::getImage($image)) . " " . $message;
return $message;
}
6 libraries/display_create_database.lib.php
View
@@ -18,7 +18,11 @@
// The user is allowed to create a db
?>
<form method="post" action="db_create.php" id="create_database_form" class="ajax"><strong>
- <?php echo '<label for="text_create_db">'. PMA_Util::getImage('b_newdb.png')." " . __('Create database') . '</label>&nbsp;' . PMA_Util::showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
+ <?php echo '<label for="text_create_db">'
+ . PMA_Util::getImage('b_newdb.png')
+ . " " . __('Create database')
+ . '</label>&nbsp;'
+ . PMA_Util::showMySQLDocu('SQL-Syntax', 'CREATE_DATABASE'); ?></strong><br />
<?php echo PMA_generate_common_hidden_inputs('', '', 5); ?>
<input type="hidden" name="reload" value="1" />
<input type="text" name="new_db" value="<?php echo $db_to_create; ?>" maxlength="64" class="textfield" id="text_create_db"/>
Please sign in to comment.
Something went wrong with that request. Please try again.