X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsite%2FSiteList.php;h=b942d6e4fe42065e19c2726da6d3a31a102ee185;hb=3124a990a261779bacacc3a32edc63c39073a914;hp=691e24b2ef16f21e6784fedcd6728ab99ae0ed81;hpb=b0c81a3e091d6695d9e2ad101a48edec2fd5d807;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/site/SiteList.php b/includes/site/SiteList.php index 691e24b2ef..b942d6e4fe 100644 --- a/includes/site/SiteList.php +++ b/includes/site/SiteList.php @@ -34,7 +34,7 @@ class SiteList extends GenericArrayObject { * * @var array Array of integer */ - protected $byInternalId = array(); + protected $byInternalId = []; /** * Global site identifiers pointing to their sites offset value. @@ -43,7 +43,7 @@ class SiteList extends GenericArrayObject { * * @var array Array of string */ - protected $byGlobalId = array(); + protected $byGlobalId = []; /** * Navigational site identifiers alias inter-language prefixes @@ -53,7 +53,7 @@ class SiteList extends GenericArrayObject { * * @var array Array of string */ - protected $byNavigationId = array(); + protected $byNavigationId = []; /** * @see GenericArrayObject::getObjectType @@ -63,7 +63,7 @@ class SiteList extends GenericArrayObject { * @return string */ public function getObjectType() { - return 'Site'; + return Site::class; } /** @@ -175,7 +175,7 @@ class SiteList extends GenericArrayObject { * @return bool */ public function isEmpty() { - return $this->byGlobalId === array(); + return $this->byGlobalId === []; } /** @@ -323,11 +323,11 @@ class SiteList extends GenericArrayObject { // old structure too, or update SERIAL_VERSION_ID to kill any caches. return array_merge( parent::getSerializationData(), - array( + [ 'internalIds' => $this->byInternalId, 'globalIds' => $this->byGlobalId, 'navigationIds' => $this->byNavigationId - ) + ] ); }