| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | 1 | protected function createAdapter(): FilesystemAdapter |
|
| 17 | { |
||
| 18 | 1 | $config = $this->config + [ |
|
| 19 | 1 | 'disable_asserts' => true, |
|
| 20 | 1 | 'case_sensitive' => true, |
|
| 21 | 1 | 'options' => [], |
|
| 22 | 1 | ]; |
|
| 23 | |||
| 24 | 1 | $client = new Client([ |
|
| 25 | 1 | 'access_key' => $config['access_key'], |
|
| 26 | 1 | 'secret_key' => $config['secret_key'], |
|
| 27 | 1 | 'bucket' => $config['bucket'], |
|
| 28 | 1 | 'region' => $config['region'], |
|
| 29 | 1 | 'options' => $config['options'] |
|
| 30 | 1 | ]); |
|
| 31 | |||
| 32 | 1 | return new BaiduBosAdapter($client); |
|
| 33 | } |
||
| 47 |