mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-10 11:33:17 +00:00
Add curly braces
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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();
|
||||
|
||||
|
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -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) {
|
||||
|
Reference in New Issue
Block a user