From 81c64845ea99d09295fafe73f44f951e7a844199 Mon Sep 17 00:00:00 2001 From: Alexandru Busuioc Date: Wed, 18 Jan 2017 12:20:58 +0200 Subject: [PATCH] PSR-2 fix --- src/Druid/Query/Aggregation/GroupBy.php | 1 - src/Druid/Query/QueryInterface.php | 1 - src/Druid/QueryBuilder/TopNQueryBuilder.php | 5 ++++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Druid/Query/Aggregation/GroupBy.php b/src/Druid/Query/Aggregation/GroupBy.php index e40c69d..f977081 100644 --- a/src/Druid/Query/Aggregation/GroupBy.php +++ b/src/Druid/Query/Aggregation/GroupBy.php @@ -29,7 +29,6 @@ namespace Druid\Query\Aggregation; - use Druid\Query\Component\DimensionSpecInterface; use Druid\Query\Component\HavingInterface; use Druid\Query\Component\LimitSpecInterface; diff --git a/src/Druid/Query/QueryInterface.php b/src/Druid/Query/QueryInterface.php index ffb6d85..58cbba2 100644 --- a/src/Druid/Query/QueryInterface.php +++ b/src/Druid/Query/QueryInterface.php @@ -29,7 +29,6 @@ namespace Druid\Query; - use Druid\Query\Exception\RequiredArgumentException; /** diff --git a/src/Druid/QueryBuilder/TopNQueryBuilder.php b/src/Druid/QueryBuilder/TopNQueryBuilder.php index 4ca4bc0..529ec93 100644 --- a/src/Druid/QueryBuilder/TopNQueryBuilder.php +++ b/src/Druid/QueryBuilder/TopNQueryBuilder.php @@ -80,7 +80,10 @@ public function setMetric(MetricInterface $metric) */ public function setThreshold($threshold) { - return $this->addComponent('threshold', $threshold instanceof ThresholdInterface ? $threshold : new Threshold((int)$threshold)); + return $this->addComponent( + 'threshold', + $threshold instanceof ThresholdInterface ? $threshold : new Threshold((int)$threshold) + ); } /**