X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fsite%2FHashSiteStore.php;h=f0a6e54e39ecffae5aeaefb5b0855ea27c89ca98;hb=43b03675d7562872b61b88949f6f4b89cb5026cd;hp=6d98e72530b91490566ae3e3da017eac7353c7ca;hpb=f1c7c0f03da1607dc955dc8db879a16fc0575657;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; } /**