X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fsite%2FHashSiteStore.php;h=f0a6e54e39ecffae5aeaefb5b0855ea27c89ca98;hb=f96aaf6833d052d10d46af47540fff995362433e;hp=6d98e72530b91490566ae3e3da017eac7353c7ca;hpb=a5b41a26b638a85b44a15986f656a5f10d1a7d7d;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/site/HashSiteStore.php b/includes/site/HashSiteStore.php index 6d98e72530..f0a6e54e39 100644 --- a/includes/site/HashSiteStore.php +++ b/includes/site/HashSiteStore.php @@ -87,11 +87,7 @@ class HashSiteStore implements SiteStore { * @return Site|null */ public function getSite( $globalId, $source = 'cache' ) { - if ( isset( $this->sites[$globalId] ) ) { - return $this->sites[$globalId]; - } else { - return null; - } + return $this->sites[$globalId] ?? null; } /**