Skip to content

Commit

Permalink
Write tests for NestedFilteredAggregation
Browse files Browse the repository at this point in the history
  • Loading branch information
Bart van Asselt committed Apr 25, 2024
1 parent a37f5bc commit 3ea308c
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Application/Results.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
use Countable;
use function array_key_exists;
use function array_merge;
use function is_array;

class Results implements Countable
{
Expand Down Expand Up @@ -52,10 +51,6 @@ public function count(): int
/** @return AggregationResult[] */
private function parseNestedAggregations(array $rawAggregation): array
{
if (!isset($rawAggregation['doc_count'])) {
return [];
}

$aggregations = [];
foreach ($rawAggregation as $nestedAggregationName => $rawNestedAggregation) {
if (isset($rawNestedAggregation['buckets'])) {
Expand Down

0 comments on commit 3ea308c

Please sign in to comment.