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