Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
4435526b0e
commit
5ff2289eeb
@@ -40,8 +40,8 @@ class SqliteRepository extends AbstractMetricRepository implements MetricInterfa
|
||||
"AND {$this->getMetricPointsTable()}.`created_at` <= datetime('now', 'localtime') ".
|
||||
"GROUP BY strftime('%H', {$this->getMetricPointsTable()}.`created_at`), strftime('%M', {$this->getMetricPointsTable()}.`created_at`) ".
|
||||
"ORDER BY {$this->getMetricPointsTable()}.`created_at`", [
|
||||
'metricId' => $metric->id,
|
||||
]);
|
||||
'metricId' => $metric->id,
|
||||
]);
|
||||
|
||||
return $this->mapResults($metric, $points);
|
||||
}
|
||||
@@ -63,8 +63,8 @@ class SqliteRepository extends AbstractMetricRepository implements MetricInterfa
|
||||
"AND {$this->getMetricPointsTable()}.`created_at` >= datetime('now', 'localtime', '-{$hour} hours') ".
|
||||
"AND {$this->getMetricPointsTable()}.`created_at` <= datetime('now', 'localtime') ".
|
||||
"GROUP BY strftime('%H', {$this->getMetricPointsTable()}.`created_at`) ORDER BY {$this->getMetricPointsTable()}.`created_at`", [
|
||||
'metricId' => $metric->id,
|
||||
]);
|
||||
'metricId' => $metric->id,
|
||||
]);
|
||||
|
||||
return $this->mapResults($metric, $points);
|
||||
}
|
||||
@@ -87,8 +87,8 @@ class SqliteRepository extends AbstractMetricRepository implements MetricInterfa
|
||||
"AND {$this->getMetricPointsTable()}.`created_at` <= datetime('now', 'localtime') ".
|
||||
"GROUP BY DATE({$this->getMetricPointsTable()}.`created_at`) ".
|
||||
"ORDER BY {$this->getMetricPointsTable()}.`created_at`", [
|
||||
'metricId' => $metric->id,
|
||||
]);
|
||||
'metricId' => $metric->id,
|
||||
]);
|
||||
|
||||
return $this->mapResults($metric, $points);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user