Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
36 | public function convert(string $format, string $outputPath): void |
||
37 | { |
||
38 | if (! isset($this->adapters[$format])) { |
||
39 | throw new Exception("Conversion format not supported: {$format}"); |
||
40 | } |
||
41 | |||
42 | $adapter = $this->adapters[$format]; |
||
43 | $adapter->convert($this->epubDirectory, $outputPath); |
||
44 | } |
||
46 |