diff --git a/modules/monitoring/application/views/helpers/Perfdata.php b/modules/monitoring/application/views/helpers/Perfdata.php
index 8c0ea236d..36cbaa319 100644
--- a/modules/monitoring/application/views/helpers/Perfdata.php
+++ b/modules/monitoring/application/views/helpers/Perfdata.php
@@ -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)
{
$pieChartData = PerfdataSet::fromString($perfdataStr)->asArray();
-
$results = array();
$table = array(
'
' . implode(
@@ -48,12 +47,12 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
}
$row .= ' | ';
- if (!$compact) {
+ if (! $compact) {
foreach ($perfdata->toArray() as $value) {
if ($value === '') {
$value = '-';
}
- $row .= '' . (string)$value . ' | ';
+ $row .= '' . (string) $value . ' | ';
}
}
@@ -61,17 +60,15 @@ class Zend_View_Helper_Perfdata extends Zend_View_Helper_Abstract
$table[] = $row;
}
}
-
if ($limit > 0) {
- $count = max (count($table), count ($results));
- $table = array_slice ($table, 0, $limit);
- $results = array_slice ($results, 0, $limit);
+ $count = max(count($table), count($results));
+ $table = array_slice($table, 0, $limit);
+ $results = array_slice($results, 0, $limit);
if ($count > $limit) {
$mess = sprintf($this->view->translate('%d more ...'), $count - $limit);
$results[] = '...';
}
}
-
if ($compact) {
return join('', $results);
} else {