Skip to content

Commit

Permalink
Applied core review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwojs committed Dec 5, 2023
1 parent bb62779 commit 126ffce
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/View/SearchViewBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ public function buildView(array $parameters): SearchView
$pagerfanta->setMaxPerPage($data->getLimit());
$pagerfanta->setCurrentPage(min($data->getPage(), $pagerfanta->getNbPages()));

$results = $this->pagerSearchContentToDataMapper->map($pagerfanta);

$view->addParameters([
'results' => $this->pagerSearchContentToDataMapper->map($pagerfanta),
'results' => $results,
'pager' => $pagerfanta,
'aggregations' => $adapter->getAggregations(),
'spellcheck' => $adapter->getSpellcheck(),

Check failure on line 87 in src/lib/View/SearchViewBuilder.php

View workflow job for this annotation

GitHub Actions / Run code style check (8.0)

Call to an undefined method Ibexa\Core\Pagination\Pagerfanta\ContentSearchHitAdapter::getSpellcheck().
Expand Down

0 comments on commit 126ffce

Please sign in to comment.