removeExpired() public method

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