Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.2559 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
51 | 1 | public function processFile(\Symfony\Component\Finder\SplFileInfo $file): string |
|
52 | { |
||
53 | try { |
||
54 | 1 | $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 | 1 | return $file->getContents(); |
|
60 | } |
||
78 |