Add curly braces

This commit is contained in:
Romain Neutron
2012-04-26 01:55:12 +02:00
parent ade22295ad
commit 33b10d6746
86 changed files with 2969 additions and 2698 deletions

View File

@@ -152,10 +152,11 @@ class module_report_dashboard implements module_report_dashboard_componentInterf
*/
public function isValid()
{
if (isset($this->dashboard) && sizeof($this->dashboard) > 0)
if (isset($this->dashboard) && sizeof($this->dashboard) > 0) {
return true;
else
} else {
return false;
}
}
/**

View File

@@ -228,10 +228,11 @@ class module_report_dashboard_feed implements module_report_dashboard_componentI
*/
public function isValid()
{
if (isset($this->report) && sizeof($this->report) > 0)
if (isset($this->report) && sizeof($this->report) > 0) {
return true;
else
} else {
return false;
}
}
}

View File

@@ -69,10 +69,11 @@ class module_report_dashboard_group implements module_report_dashboard_component
*/
public function isValid()
{
if (isset($this->group_dash) && sizeof($this->group_dash) > 0)
if (isset($this->group_dash) && sizeof($this->group_dash) > 0) {
return true;
else
} else {
return false;
}
}
/**

View File

@@ -121,10 +121,11 @@ class module_report_dashboard_merge implements module_report_dashboard_component
*/
public function isValid()
{
if (isset($this->sorted) && sizeof($this->sorted) > 0)
if (isset($this->sorted) && sizeof($this->sorted) > 0) {
return true;
else
} else {
return false;
}
}
/**

View File

@@ -122,10 +122,11 @@ class module_report_dashboard_sort implements module_report_dashboard_componentI
public function isValid()
{
if (isset($this->arraySorted) && sizeof($this->arraySorted) > 0)
if (isset($this->arraySorted) && sizeof($this->arraySorted) > 0) {
return true;
else
} else {
return false;
}
}
public function getDash()
@@ -135,8 +136,9 @@ class module_report_dashboard_sort implements module_report_dashboard_componentI
public function getTop($nbtop)
{
if ( ! is_int($nbtop))
if ( ! is_int($nbtop)) {
return array();
}
$tmp = array();

View File

@@ -113,10 +113,11 @@ class module_report_sql
public function getTransQuery($champ)
{
$tanslation = $this->filter->getCorFilter();
if (array_key_exists($champ, $tanslation))
if (array_key_exists($champ, $tanslation)) {
return $tanslation[$champ];
else
} else {
return $champ;
}
}
/**

View File

@@ -184,8 +184,9 @@ class module_report_sqlfilter
$this->filter['collection'] = false;
$coll_filter = array();
if ($report->getUserId() == '')
if ($report->getUserId() == '') {
return;
}
$tab = explode(",", $report->getListCollId());
if (count($tab) > 0) {