X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fsite%2FHashSiteStore.php;h=2c7965c90236264c56289c363131b13cf4730c80;hb=a2254d32bf816c28f2a3fb4088b5e4356cff4c48;hp=2c2547210a76b1d1fb8538c6718a55dd662c8f67;hpb=39508404aa6e7d9e8ce55eeeab523bf31e8affb6;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/site/HashSiteStore.php b/includes/site/HashSiteStore.php index 2c2547210a..2c7965c902 100644 --- a/includes/site/HashSiteStore.php +++ b/includes/site/HashSiteStore.php @@ -34,12 +34,12 @@ class HashSiteStore implements SiteStore { /** * @var Site[] */ - private $sites = array(); + private $sites = []; /** - * @param array $sites + * @param Site[] $sites */ - public function __construct( $sites = array() ) { + public function __construct( $sites = [] ) { $this->saveSites( $sites ); } @@ -50,7 +50,7 @@ class HashSiteStore implements SiteStore { * * @param Site $site * - * @return boolean Success indicator + * @return bool Success indicator */ public function saveSite( Site $site ) { $this->sites[$site->getGlobalId()] = $site; @@ -65,7 +65,7 @@ class HashSiteStore implements SiteStore { * * @param Site[] $sites * - * @return boolean Success indicator + * @return bool Success indicator */ public function saveSites( array $sites ) { foreach ( $sites as $site ) { @@ -115,7 +115,7 @@ class HashSiteStore implements SiteStore { * list and getSite() will return null until saveSite() or saveSites() is called. */ public function clear() { - $this->sites = array(); + $this->sites = []; return true; }