removeDuplicates = true; } function run() { $user = User::newFromId( $this->params['user_id'] ); if ( $user ) { $bundle = MWEchoEmailBundler::newFromUserHash( $user, $this->params['bundle_hash'] ); if ( $bundle ) { $bundle->processBundleEmail(); } } else { //@Todo: delete notifications for this user_id } return true; } }