&& empty( $options['private'] )
&& empty( $options['latest'] )
) {
- $time = isset( $options['time'] ) ? $options['time'] : '';
+ $time = $options['time'] ?? '';
if ( $this->cache->has( $dbkey, $time, 60 ) ) {
return $this->cache->get( $dbkey, $time );
}
* Split a virtual URL into repo, zone and rel parts
* @param string $url
* @throws MWException
- * @return array Containing repo, zone and rel
+ * @return string[] Containing repo, zone and rel
*/
function splitVirtualUrl( $url ) {
if ( substr( $url, 0, 9 ) != 'mwrepo://' ) {