Skip to content

Commit

Permalink
Fix coding style
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Delisle <marc@infomarc.info>
  • Loading branch information
lem9 committed Apr 8, 2014
1 parent 3e3d7db commit 8799d52
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions libraries/RecentFavoriteTable.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ public function getHtmlList()
{
$html = '';
if (count($this->tables)) {
if($this->table_type == 'recent')
if ($this->table_type == 'recent') {
foreach ($this->tables as $table) {
$html .= '<li>';
$html .= '<a href="sql.php?server=' . $GLOBALS['server']
Expand All @@ -195,8 +195,7 @@ public function getHtmlList()
. '">`' . $table['db'] . '`.`' . $table['table'] . '`</a>';
$html .= '</li>';
}
else
{
} else {
foreach ($this->tables as $table) {
$html .= '<li>';

Expand All @@ -205,7 +204,8 @@ public function getHtmlList()
'ajax_request' => true,
'favorite_table' => $table['table'],
'remove_favorite' => true);
$fav_rm_url = 'db_structure.php' . PMA_URL_getCommon($fav_params);
$fav_rm_url = 'db_structure.php'
. PMA_URL_getCommon($fav_params);
$html .= 'href="' . $fav_rm_url
. '" title="' . __("Remove from Favorites")
. '" favtargetn="' . $table['db'] . "." . $table['table']
Expand Down Expand Up @@ -239,11 +239,12 @@ public function getHtmlList()
public function getHtml()
{
$html = '<div class="drop_list">';
if($this->table_type == 'recent') {
$html .= '<span class="drop_button">' . __('Recent') . '</span><ul id="pma_recent_list">';
}
else {
$html .= '<span class="drop_button">' . __('Favorite') . '</span><ul id="pma_favorite_list">';
if ($this->table_type == 'recent') {
$html .= '<span class="drop_button">'
. __('Recent') . '</span><ul id="pma_recent_list">';
} else {
$html .= '<span class="drop_button">'
. __('Favorite') . '</span><ul id="pma_favorite_list">';
}
$html .= $this->getHtmlList();
$html .= '</ul></div>';
Expand Down

1 comment on commit 8799d52

@WhaleWatching
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, Marc.
I'll using PMA coding style next time, I'm not noticed before.

Please sign in to comment.