mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-09-25 18:59:04 +02:00
Fix code style in the Perfdata view helper
This commit is contained in:
parent
09d713be0d
commit
5745c1fec4
@ -19,7 +19,6 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
|
|||||||
public function perfdata($perfdataStr, $compact = false, $limit = 0, $color = Perfdata::PERFDATA_OK)
|
public function perfdata($perfdataStr, $compact = false, $limit = 0, $color = Perfdata::PERFDATA_OK)
|
||||||
{
|
{
|
||||||
$pieChartData = PerfdataSet::fromString($perfdataStr)->asArray();
|
$pieChartData = PerfdataSet::fromString($perfdataStr)->asArray();
|
||||||
|
|
||||||
$results = array();
|
$results = array();
|
||||||
$table = array(
|
$table = array(
|
||||||
'<td><b>' . implode(
|
'<td><b>' . implode(
|
||||||
@ -61,7 +60,6 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
|
|||||||
$table[] = $row;
|
$table[] = $row;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($limit > 0) {
|
if ($limit > 0) {
|
||||||
$count = max(count($table), count($results));
|
$count = max(count($table), count($results));
|
||||||
$table = array_slice($table, 0, $limit);
|
$table = array_slice($table, 0, $limit);
|
||||||
@ -71,7 +69,6 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
|
|||||||
$results[] = '<span title="' . $mess . '">...</span>';
|
$results[] = '<span title="' . $mess . '">...</span>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($compact) {
|
if ($compact) {
|
||||||
return join('', $results);
|
return join('', $results);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user