Skip to content

Commit

Permalink
refactor: simplify code
Browse files Browse the repository at this point in the history
  • Loading branch information
zhyian committed Dec 26, 2024
1 parent 5f69153 commit 8ab3704
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Infrastructure/Search/FilterableTermsUpdater.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,11 +403,7 @@ private function isHierarchicalProperty(
MultilingualString|MultilingualLink|AdmissionRequirement|Degree $flatProperty
): bool {

return in_array($flatProperty::class, [
Degree::class,
AdmissionRequirement::class,
MultilingualLink::class,
], true);
return !$flatProperty instanceof MultilingualString;
}

private function createTerm(TermData $termData): ?int
Expand Down

0 comments on commit 8ab3704

Please sign in to comment.