Skip to content

Commit 01a317d

Browse files
committed
Apply CS fixes
1 parent 24bcb39 commit 01a317d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/Engine/SearchEngine.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ public function execute(?string $query, array $parameters = []): SearchResult
5959

6060
/**
6161
* @param array<string> $facets
62+
*
6263
* @return array<SearchQuery>
6364
*/
6465
private function createSearchQueries(string $indexUid, array $facets, ?string $query): array
@@ -69,7 +70,8 @@ private function createSearchQueries(string $indexUid, array $facets, ?string $q
6970
$facets = [$facet];
7071
$filteredFacets = array_filter(
7172
$parameters['facets'] ?? [],
72-
static fn ($value) => $value !== $facet, ARRAY_FILTER_USE_KEY,
73+
static fn ($value) => $value !== $facet,
74+
\ARRAY_FILTER_USE_KEY,
7375
);
7476
$filter = $this->filterBuilder->build($filteredFacets);
7577

tests/Functional/SearchTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ public function testItAlwaysDisplaysFullFacetDistribution(): void
8484
);
8585

8686
$this->assertSame(1, $result->getHitsCount());
87-
$this->assertSame(4, count($result->getFacetDistribution()['brand']));
87+
$this->assertCount(4, $result->getFacetDistribution()['brand']);
8888
}
8989
}

0 commit comments

Comments
 (0)