foreach ($files as $file) { $svg =
file_get_contents($file);
if (!\
is_string($svg)) { $this->io->
warning('Could not read ' .
$file . '.You have to handle this file by hand.'
);
continue;
} try { $svg =
$svgReader->
parseString($svg);
if (!
($svg instanceof SVG
)) { $this->io->
warning('Could not read ' .
$file . '.You have to handle this file by hand.'
);
continue;
} } catch (\Exception
$e) { $this->io->
warning($e->
getMessage() . ' ' .
$file . \PHP_EOL . 'You have to handle this file by hand.'
);
continue;
}