/** * Sweep expired codes. * * @param ReminderRepositoryInterface|ActivationRepositoryInterface $repository * @param array $lottery * @return void */ protected function sweep($repository, $lottery) { if ($this->hitsLottery($lottery)) { $repository->removeExpired(); } }