Skip to content

Commit 0871639

Browse files
fedorf4github-actions[bot]
authored andcommitted
Fix styling
1 parent 13be186 commit 0871639

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Aggregating/Bucket/ReverseNestedAggregation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
class ReverseNestedAggregation implements Aggregation
1010
{
1111
public function __construct(
12-
private string $name,
12+
private string $name,
1313
private AggregationCollection $children
1414
) {
1515
Assert::stringNotEmpty(trim($name));

src/Concerns/ConstructsAggregations.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,15 +136,15 @@ public function nested(string $path, Closure $callback): static
136136
public function reverseNested(string $name, Closure $callback): static
137137
{
138138
$builder = $this->createCompositeBuilder("{$name}_builder");
139-
139+
140140
/** @var AggregationCollection $aggs */
141141
$aggs = tap($builder, $callback)->build();
142-
142+
143143
if (!$aggs->isEmpty()) {
144144
$reverseNested = new ReverseNestedAggregation($name, $aggs);
145145
$this->aggregations->merge(AggregationCollection::fromAggregation($reverseNested));
146146
}
147-
147+
148148
return $this;
149149
}
150150

tests/IntegrationTests/AggregationQueryIntegrationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,9 +278,9 @@
278278
->get();
279279

280280
$prices = $results->get('offer_prices');
281-
281+
282282
expect($prices)->toBeInstanceOf(BucketCollection::class);
283-
283+
284284
foreach ($prices as $bucket) {
285285
expect($bucket->getCompositeValue('unique_products'))->toBeGreaterThan(0);
286286
expect($bucket->getCompositeValue('total_products'))->toBeGreaterThan(0);

0 commit comments

Comments
 (0)