/**
  * Handle the delete analysis command.
  *
  * @param \StyleCI\StyleCI\Commands\Analysis\DeleteAnalysisCommand $command
  *
  * @return void
  */
 public function handle(DeleteAnalysisCommand $command)
 {
     $analysis = $command->analysis;
     if (in_array($analysis->status, Analysis::HAS_DIFF, true)) {
         $this->storage->delete($analysis->id);
     }
     $analysis->delete();
 }