global $wgRequest;
$ctype = $wgRequest->getVal( 'ctype', 'application/xml' );
- $allowedctypes = array(
+ $allowedctypes = [
'application/xml',
'text/xml',
'application/rss+xml',
'application/atom+xml'
- );
+ ];
return ( in_array( $ctype, $allowedctypes ) ? $ctype : 'application/xml' );
}