X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fsite%2FHashSiteStore.php;h=f0a6e54e39ecffae5aeaefb5b0855ea27c89ca98;hb=088f0ab09174df62127623da09d1f7d091783ba7;hp=6d98e72530b91490566ae3e3da017eac7353c7ca;hpb=7320a9577e882fbeacb1772977fbfecf8aa5424d;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; } /**