| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 13 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php namespace Nord\Lumen\FileManager\Adapters; | ||
| 66 | private function createClient(array $config) | ||
| 67 |     { | ||
| 68 |         $key     = array_get($config, 'key', env('S3_KEY')); | ||
| 69 |         $secret  = array_get($config, 'secret', env('S3_SECRET')); | ||
| 70 |         $region  = array_get($config, 'region', env('S3_REGION')); | ||
| 71 | $version = array_get($config, 'version', 'latest'); | ||
| 72 | |||
| 73 | return new S3Client([ | ||
| 74 | 'credentials' => ['key' => $key, 'secret' => $secret], | ||
| 75 | 'region' => $region, | ||
| 76 | 'version' => $version, | ||
| 77 | ]); | ||
| 78 | } | ||
| 79 | } | ||
| 80 |