/**
  * @param null $time
  * @return mixed
  * @throws InvalidArgumentException
  */
 public function clear($time = null)
 {
     if (is_null($time)) {
         $this->config->get('visitor-log::onlinetime');
     }
     return $this->visitorRepository->clear($time);
 }