Skip to content

Commit

Permalink
PSR-2 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbusu committed Jan 18, 2017
1 parent 4107b96 commit 81c6484
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/Druid/Query/Aggregation/GroupBy.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

namespace Druid\Query\Aggregation;


use Druid\Query\Component\DimensionSpecInterface;
use Druid\Query\Component\HavingInterface;
use Druid\Query\Component\LimitSpecInterface;
Expand Down
1 change: 0 additions & 1 deletion src/Druid/Query/QueryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@

namespace Druid\Query;


use Druid\Query\Exception\RequiredArgumentException;

/**
Expand Down
5 changes: 4 additions & 1 deletion src/Druid/QueryBuilder/TopNQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',

This comment has been minimized.

Copy link
@Rastusik

Rastusik Jan 18, 2017

aren't there any constants for this keyword?

This comment has been minimized.

Copy link
@alexbusu

alexbusu Jan 18, 2017

Author Contributor

@Rastusik Nope

$threshold instanceof ThresholdInterface ? $threshold : new Threshold((int)$threshold)
);
}

/**
Expand Down

0 comments on commit 81c6484

Please sign in to comment.