Merge "Rephrase enotif_lastdiff and enotif_lastvisited"
[lhc/web/wiklou.git] / tests / phpunit / includes / site / HashSiteStoreTest.php
index 49a9633..6269fd3 100644 (file)
@@ -30,9 +30,9 @@ class HashSiteStoreTest extends MediaWikiTestCase {
         * @covers HashSiteStore::getSites
         */
        public function testGetSites() {
-               $expectedSites = array();
+               $expectedSites = [];
 
-               foreach( TestSites::getSites() as $testSite ) {
+               foreach ( TestSites::getSites() as $testSite ) {
                        $siteId = $testSite->getGlobalId();
                        $expectedSites[$siteId] = $testSite;
                }
@@ -66,7 +66,7 @@ class HashSiteStoreTest extends MediaWikiTestCase {
        public function testSaveSites() {
                $store = new HashSiteStore();
 
-               $sites = array();
+               $sites = [];
 
                $site = new Site();
                $site->setGlobalId( 'enwiki' );