From c2e602f159dec5c6aaca9d07bf9f95a5321e2fec Mon Sep 17 00:00:00 2001 From: Denis Urban <urbandenis0@gmail.com> Date: Sat, 5 Aug 2023 14:43:46 +0200 Subject: [PATCH] lint fixes --- src/Aggregation/Bucketing/DateHistogramAggregation.php | 2 -- src/Search.php | 7 +++++-- .../Aggregation/Bucketing/HistogramAggregationTest.php | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Aggregation/Bucketing/DateHistogramAggregation.php b/src/Aggregation/Bucketing/DateHistogramAggregation.php index ef91d66..38ae3d2 100644 --- a/src/Aggregation/Bucketing/DateHistogramAggregation.php +++ b/src/Aggregation/Bucketing/DateHistogramAggregation.php @@ -111,6 +111,4 @@ class DateHistogramAggregation extends AbstractAggregation return $out; } - - } diff --git a/src/Search.php b/src/Search.php index ed78d68..a109a6a 100644 --- a/src/Search.php +++ b/src/Search.php @@ -254,8 +254,11 @@ class Search * - must_not * - should. */ - public function addPostFilter(BuilderInterface $filter, string $boolType = BoolQuery::MUST, mixed $key = null): static - { + public function addPostFilter( + BuilderInterface $filter, + string $boolType = BoolQuery::MUST, + mixed $key = null + ): static { $this ->getEndpoint(PostFilterEndpoint::NAME) ->addToBool($filter, $boolType, $key); diff --git a/tests/Unit/Aggregation/Bucketing/HistogramAggregationTest.php b/tests/Unit/Aggregation/Bucketing/HistogramAggregationTest.php index cdae5b4..ee87de9 100644 --- a/tests/Unit/Aggregation/Bucketing/HistogramAggregationTest.php +++ b/tests/Unit/Aggregation/Bucketing/HistogramAggregationTest.php @@ -109,4 +109,4 @@ class HistogramAggregationTest extends TestCase $this->assertEquals(['min' => 0], $aggregation->getExtendedBounds()); $this->assertEquals($expected, $result); } -} \ No newline at end of file +} -- GitLab