mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-30 19:43:49 +00:00
DX: apply rector rulesset up to PHP72
This commit is contained in:
@@ -91,11 +91,7 @@ class SearchProvider
|
||||
{
|
||||
//sort the array
|
||||
uasort($this->searchServices, static function (SearchInterface $a, SearchInterface $b) {
|
||||
if ($a->getOrder() === $b->getOrder()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ($a->getOrder() < $b->getOrder()) ? -1 : 1;
|
||||
return $a->getOrder() <=> $b->getOrder();
|
||||
});
|
||||
|
||||
return $this->searchServices;
|
||||
@@ -124,11 +120,7 @@ class SearchProvider
|
||||
{
|
||||
//sort the array
|
||||
uasort($this->hasAdvancedFormSearchServices, static function (SearchInterface $a, SearchInterface $b) {
|
||||
if ($a->getOrder() === $b->getOrder()) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return ($a->getOrder() < $b->getOrder()) ? -1 : 1;
|
||||
return $a->getOrder() <=> $b->getOrder();
|
||||
});
|
||||
|
||||
return $this->hasAdvancedFormSearchServices;
|
||||
|
Reference in New Issue
Block a user