Skip to content

Commit

Permalink
Fix SonarCloud issues
Browse files Browse the repository at this point in the history
  • Loading branch information
markus-moser committed May 27, 2024
1 parent e00575b commit 0c09e5d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public function getWorkspaceQuery(?User $user, string $permission): BoolQuery
$workspaceQuery = new BoolQuery([
ConditionType::FILTER->value => [
new TermFilter(
SystemField::ELEMENT_TYPE->getPath(), ElementType::fromShortValue($workspaceType)->value
SystemField::ELEMENT_TYPE->getPath(),
ElementType::fromShortValue($workspaceType)->value
),
$this->workspaceQueryService->getWorkspaceQuery($workspaceType, $user, $permission),
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,9 @@ public function addSearchRestrictions(SearchInterface $search): SearchInterface;

public function performSearch(SearchInterface $search, string $indexName): SearchResult;

public function hydrateSearchResultHits(SearchResult $searchResult, array $childrenCounts, ?User $user = null): array;
public function hydrateSearchResultHits(
SearchResult $searchResult,
array $childrenCounts,
?User $user = null
): array;
}

0 comments on commit 0c09e5d

Please sign in to comment.