From 39299829ab9c14cb3af82ec80c9cd7da9d34764b Mon Sep 17 00:00:00 2001 From: James Brooks Date: Fri, 25 Nov 2016 20:06:52 +0000 Subject: [PATCH] Added missing docblock --- .../Commands/Metric/AddMetricPointCommandHandler.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/Bus/Handlers/Commands/Metric/AddMetricPointCommandHandler.php b/app/Bus/Handlers/Commands/Metric/AddMetricPointCommandHandler.php index 90e2f5f0..91a07f49 100644 --- a/app/Bus/Handlers/Commands/Metric/AddMetricPointCommandHandler.php +++ b/app/Bus/Handlers/Commands/Metric/AddMetricPointCommandHandler.php @@ -60,6 +60,13 @@ class AddMetricPointCommandHandler return $point; } + /** + * Find or create a metric point. + * + * @param \CachetHQ\Cachet\Bus\Commands\Metric\AddMetricPointCommand $command + * + * @return \CachetHQ\Cachet\Models\MetricPoint + */ protected function findOrCreatePoint(AddMetricPointCommand $command) { $buffer = Carbon::now()->subMinutes($command->metric->threshold);