| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Lines | 10 |
| Ratio | 100 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 31 | public function doCreateService(ContainerInterface $container): AdapterInterface |
||
| 32 | 3 | { |
|
| 33 | if (! \class_exists(Adapter::class)) { |
||
| 34 | 3 | throw new RequirementsException(['league/flysystem-webdav'], 'WebDAV'); |
|
| 35 | 1 | } |
|
| 36 | |||
| 37 | $client = new Client($this->options); |
||
| 38 | 2 | ||
| 39 | 2 | return new Adapter($client, $this->options['prefix']); |
|
| 40 | } |
||
| 41 | 2 | ||
| 53 |