protected function sweep($repository, array $lottery)
    {
        if ($this->configHitsLottery($lottery)) {
            try {
                $repository->removeExpired();
            } catch (Exception $e) {
            }
        }
    }
protected function sweep($repository, array $lottery)
    {
        if ($this->configHitsLottery($lottery)) {
            try {
                $repository->removeExpired();
            } catch (Exception $e) {
            }
        }
    }
protected function sweep ( $ repository , array $ lottery ) { if ( $ this -> configHitsLottery ( $ lottery ) ) { try { $ repository -> removeExpired ( ) ; } catch ( Exception $ e ) { } } }
Sweep expired codes.

@param  mixed  $repository
@param  array  $lottery
@return void
Sweep expired codes .