Merge "Add support for PHP7 random_bytes in favor of mcrypt_create_iv"
[lhc/web/wiklou.git] / includes / search / SearchSuggestionSet.php
index a1f9a04..caad388 100644 (file)
@@ -17,7 +17,6 @@
  * with this program; if not, write to the Free Software Foundation, Inc.,
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  * http://www.gnu.org/copyleft/gpl.html
- *
  */
 
 /**
@@ -28,13 +27,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 +202,10 @@ class SearchSuggestionSet {
                return new SearchSuggestionSet( $suggestions );
        }
 
-
        /**
         * @return SearchSuggestionSet an empty suggestion set
         */
        public static function emptySuggestionSet() {
-               return new SearchSuggestionSet( array() );
+               return new SearchSuggestionSet( [] );
        }
 }