* @param array $args Arguments to pass to the callback functions
* @return string|null String to output or null if any hook has been called
*/
- public function runHooks( $name, $args = array() ) {
+ public function runHooks( $name, $args = [] ) {
global $wgExceptionHooks;
if ( !isset( $wgExceptionHooks ) || !is_array( $wgExceptionHooks ) ) {
}
$hooks = $wgExceptionHooks[$name];
- $callargs = array_merge( array( $this ), $args );
+ $callargs = array_merge( [ $this ], $args );
foreach ( $hooks as $hook ) {
if (