DX: rector rules upt to PHP 74

This commit is contained in:
2023-04-15 00:20:19 +02:00
parent a68190f0c6
commit 858ade467c
213 changed files with 433 additions and 1052 deletions

View File

@@ -90,9 +90,7 @@ class SearchProvider
public function getByOrder()
{
//sort the array
uasort($this->searchServices, static function (SearchInterface $a, SearchInterface $b) {
return $a->getOrder() <=> $b->getOrder();
});
uasort($this->searchServices, static fn(SearchInterface $a, SearchInterface $b) => $a->getOrder() <=> $b->getOrder());
return $this->searchServices;
}
@@ -119,9 +117,7 @@ class SearchProvider
public function getHasAdvancedFormSearchServices()
{
//sort the array
uasort($this->hasAdvancedFormSearchServices, static function (SearchInterface $a, SearchInterface $b) {
return $a->getOrder() <=> $b->getOrder();
});
uasort($this->hasAdvancedFormSearchServices, static fn(SearchInterface $a, SearchInterface $b) => $a->getOrder() <=> $b->getOrder());
return $this->hasAdvancedFormSearchServices;
}