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