| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 8 |
| Lines | 15 |
| Ratio | 100 % |
| Tests | 5 |
| CRAP Score | 2.2109 |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | 1 | public function doCreateService(ServiceLocatorInterface $serviceLocator) |
|
| 18 | { |
||
| 19 | 1 | if (!class_exists(\League\Flysystem\WebDAV\WebDAVAdapter::class)) { |
|
| 20 | throw new RequirementsException( |
||
| 21 | ['league/flysystem-webdav'], |
||
| 22 | 'WebDAV' |
||
| 23 | ); |
||
| 24 | } |
||
| 25 | |||
| 26 | 1 | $client = new Client($this->options); |
|
| 27 | |||
| 28 | 1 | $adapter = new Adapter($client, $this->options['prefix']); |
|
| 29 | |||
| 30 | 1 | return $adapter; |
|
| 31 | } |
||
| 32 | |||
| 47 |