From b81978c67cec912cf9ed9fe4991b2ce957e5f068 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Wed, 6 Jul 2022 05:50:10 +0000 Subject: [PATCH] fix linters --- src/Appwrite/Stats/Usage.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Appwrite/Stats/Usage.php b/src/Appwrite/Stats/Usage.php index 473f55c227..c03cfcebef 100644 --- a/src/Appwrite/Stats/Usage.php +++ b/src/Appwrite/Stats/Usage.php @@ -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; } } - } /**