fix linters

This commit is contained in:
Damodar Lohani 2022-07-06 05:50:10 +00:00
parent 5d3c5a151f
commit b81978c67c

View file

@ -321,10 +321,10 @@ class Usage
$points = $result->getPoints();
foreach ($points as $point) {
$projectId = $point['projectId'];
if (!empty($projectId) && $projectId !== 'console') {
$metricUpdated = $metric;
if (!empty($groupBy)) {
foreach ($options['groupBy'] as $groupBy) {
$groupedBy = $point[$groupBy] ?? '';
@ -334,10 +334,10 @@ class Usage
$metricUpdated = str_replace($groupBy, $groupedBy, $metricUpdated);
}
}
$time = \strtotime($point['time']);
$value = (!empty($point['value'])) ? $point['value'] : 0;
$this->createOrUpdateMetric(
$projectId,
$time,
@ -355,7 +355,6 @@ class Usage
throw $e;
}
}
}
/**