Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function processFile(\Symfony\Component\Finder\SplFileInfo $file): string |
||
52 | { |
||
53 | try { |
||
54 | $this->processor->optimize($file->getPathname()); |
||
55 | } catch (\Exception $e) { |
||
56 | $this->builder->getLogger()->error(sprintf('Can\'t optimize image "%s": "%s"', $file->getPathname(), $e->getMessage())); |
||
57 | } |
||
58 | |||
59 | return $file->getContents(); |
||
60 | } |
||
78 |