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

@@ -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();