| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Lines | 8 |
| Ratio | 100 % |
| Tests | 4 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function doCreateService(ContainerInterface $container): AdapterInterface |
||
| 31 | 4 | { |
|
| 32 | 1 | if (! \class_exists(Adapter::class)) { |
|
| 33 | throw new RequirementsException(['league/ziparchive'], 'ZipArchive'); |
||
| 34 | } |
||
| 35 | 3 | ||
| 36 | 3 | return new Adapter($this->options['archive'], null, $this->options['prefix']); |
|
| 37 | } |
||
| 38 | 3 | ||
| 50 |