protected function buildQueryAndExecute()
{
$result = '';
try {
$result = trim($this->exiftool->executeCommand($this->buildQuery()));
} catch (RuntimeException $e) {
/**
* In case no file found, an exit code 1 is returned
*/
if (!$this->ignoreDotFile) {
throw $e;
}
}
if ($result === '') {
return new ArrayCollection();
}
$this->parser->open($result);
return $this->parser->ParseEntities();
}