Ejemplo n.º 1
0
 protected function actionScanResult(FileRecord $file, Scan $scan)
 {
     $detectionRatio = $scan->positives / $scan->total;
     if ($detectionRatio >= config('virustotal.detection_threshold')) {
         $this->info(sprintf('Deleting file: %s (#%d)', $file->client_name, $file->id));
         return $file->delete();
     } else {
         return false;
     }
 }