public static function search( $audience, $search, $limit, $offset = 0 ) {
$user = User::newFromName( $search );
public static function search( $audience, $search, $limit, $offset = 0 ) {
$user = User::newFromName( $search );
// Filter out hidden user names
if ( $audience === 'public' || !$audience->isAllowed( 'hideuser' ) ) {
$tables[] = 'ipblocks';
// Filter out hidden user names
if ( $audience === 'public' || !$audience->isAllowed( 'hideuser' ) ) {
$tables[] = 'ipblocks';
- $cond['ipb_deleted'] = array( 0, null );
- $joinConds['ipblocks'] = array( 'LEFT JOIN', 'user_id=ipb_user' );
+ $cond['ipb_deleted'] = [ 0, null ];
+ $joinConds['ipblocks'] = [ 'LEFT JOIN', 'user_id=ipb_user' ];