- $dbw = wfGetDB( DB_MASTER );
- $dbw->delete( 'user', array( 'user_id' => $del ), __METHOD__ );
- $dbw->delete( 'user_groups', array( 'ug_user' => $del ), __METHOD__ );
- $dbw->delete( 'user_former_groups', array( 'ufg_user' => $del ), __METHOD__ );
- $dbw->delete( 'user_properties', array( 'up_user' => $del ), __METHOD__ );
- $dbw->delete( 'logging', array( 'log_user' => $del ), __METHOD__ );
- $dbw->delete( 'recentchanges', array( 'rc_user' => $del ), __METHOD__ );
+ $dbw = $this->getDB( DB_MASTER );
+ $dbw->delete( 'user', [ 'user_id' => $del ], __METHOD__ );
+ $dbw->delete( 'user_groups', [ 'ug_user' => $del ], __METHOD__ );
+ $dbw->delete( 'user_former_groups', [ 'ufg_user' => $del ], __METHOD__ );
+ $dbw->delete( 'user_properties', [ 'up_user' => $del ], __METHOD__ );
+ $dbw->delete( 'logging', [ 'log_user' => $del ], __METHOD__ );
+ $dbw->delete( 'recentchanges', [ 'rc_user' => $del ], __METHOD__ );