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