Fix coding style in libraries/navigation/*

Signed-off-by: Chirayu Chiripal <chirayu.chiripal@gmail.com>
This commit is contained in:
Chirayu Chiripal 2015-02-26 20:39:19 +05:30
parent db238f091e
commit ef4411cd2d
3 changed files with 6 additions and 6 deletions

View File

@ -948,7 +948,7 @@ class PMA_NavigationTree
if ($node->hasSiblings()
|| $node->realParent() === false
) {
if ( $node->type == Node::CONTAINER
if ($node->type == Node::CONTAINER
&& count($node->children) == 0
&& $GLOBALS['is_ajax_request'] != true
) {

View File

@ -217,7 +217,7 @@ class Node
}
$parent = $this->parent;
while (isset($parent)) {
if ( ($parent->type != Node::CONTAINER || $containers)
if (($parent->type != Node::CONTAINER || $containers)
&& ($parent->is_group != true || $groups)
) {
$parents[] = $parent;

View File

@ -92,7 +92,7 @@ class Node_Database extends Node
/**
* Returns the number of tables or views present inside this database
*
* @param string $which tables|views
* @param string $which tables|views
* @param string $searchClause A string used to filter the results of
* the query
* @param boolean $singleItem Whether to get presence of a single known
@ -385,7 +385,7 @@ class Node_Database extends Node
/**
* Returns the list of tables or views inside this database
*
* @param string $which tables|views
* @param string $which tables|views
* @param int $pos The offset of the list within the results
* @param string $searchClause A string used to filter the results of the query
*
@ -478,7 +478,7 @@ class Node_Database extends Node
/**
* Returns the list of procedures or functions inside this database
*
* @param string $routineType PROCEDURE|FUNCTION
* @param string $routineType PROCEDURE|FUNCTION
* @param int $pos The offset of the list within the results
* @param string $searchClause A string used to filter the results of the query
*
@ -621,7 +621,7 @@ class Node_Database extends Node
$ret = '';
$cfgRelation = PMA_getRelationsParam();
if (isset($cfgRelation['navwork']) && $cfgRelation['navwork']) {
if ( $this->_hiddenCount > 0) {
if ($this->_hiddenCount > 0) {
$ret = '<span class="dbItemControls">'
. '<a href="navigation.php'
. PMA_URL_getCommon()