X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsearch%2FSearchSuggestionSet.php;h=5a24fd6d75067809a2ff29b5a8310e6a34cb9df8;hb=0b93e90fd09e5da3bf4caad78260cf739129034e;hp=a1f9a04c9ee380632e9f62bb88efc1ec4197bde6;hpb=ca2c2c0f4fdd633779ce1d48d09645275b0e5827;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/search/SearchSuggestionSet.php b/includes/search/SearchSuggestionSet.php index a1f9a04c9e..5a24fd6d75 100644 --- a/includes/search/SearchSuggestionSet.php +++ b/includes/search/SearchSuggestionSet.php @@ -28,13 +28,13 @@ class SearchSuggestionSet { /** * @var SearchSuggestion[] */ - private $suggestions = array(); + private $suggestions = []; /** * * @var array */ - private $pageMap = array(); + private $pageMap = []; /** * Builds a new set of suggestions. @@ -203,11 +203,10 @@ class SearchSuggestionSet { return new SearchSuggestionSet( $suggestions ); } - /** * @return SearchSuggestionSet an empty suggestion set */ public static function emptySuggestionSet() { - return new SearchSuggestionSet( array() ); + return new SearchSuggestionSet( [] ); } }