| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 13 |
| Ratio | 100 % |
| Tests | 4 |
| CRAP Score | 2.3149 |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | 2 | public function doCreateService(ServiceLocatorInterface $serviceLocator) |
|
| 17 | { |
||
| 18 | 2 | if (!class_exists(\League\Flysystem\ZipArchive\ZipArchiveAdapter::class)) { |
|
| 19 | throw new RequirementsException( |
||
| 20 | ['league/ziparchive'], |
||
| 21 | 'ZipArchive' |
||
| 22 | ); |
||
| 23 | } |
||
| 24 | |||
| 25 | 2 | $adapter = new Adapter($this->options['archive'], null, $this->options['prefix']); |
|
| 26 | |||
| 27 | 2 | return $adapter; |
|
| 28 | } |
||
| 29 | |||
| 44 |