@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | |
| 29 | 29 | public function register() |
| 30 | 30 | { |
| 31 | - $this->app->bind(AliyunOssDriver::class, function () { |
|
| 31 | + $this->app->bind(AliyunOssDriver::class, function() { |
|
| 32 | 32 | $cache = $this->app->get(Cache::class); |
| 33 | 33 | $config = $this->app->get('config')->get('filesystem.disks.aliyun'); |
| 34 | 34 | $driver = new AliyunOssDriver($cache, $config); |
@@ -36,7 +36,7 @@ discard block |
||
| 36 | 36 | }); |
| 37 | 37 | $this->app->bind('aliyun-oss.driver', AliyunOssDriver::class); |
| 38 | 38 | |
| 39 | - $this->app->bind('aliyun-oss.filesystem', function () { |
|
| 39 | + $this->app->bind('aliyun-oss.filesystem', function() { |
|
| 40 | 40 | $adapter = $this->app->get('aliyun-oss.adapter'); |
| 41 | 41 | |
| 42 | 42 | $filesystem = new Filesystem($adapter, new Config(['disable_asserts' => true])); |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | return $filesystem; |
| 46 | 46 | }); |
| 47 | 47 | |
| 48 | - $this->app->bind('aliyun-oss.adapter', function () { |
|
| 48 | + $this->app->bind('aliyun-oss.adapter', function() { |
|
| 49 | 49 | $config = $this->app->get('config')->get('filesystem.disks.aliyun'); |
| 50 | 50 | $client = $this->app->get('aliyun-oss.client'); |
| 51 | 51 | |
@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | return $adapter; |
| 55 | 55 | }); |
| 56 | 56 | |
| 57 | - $this->app->bind('aliyun-oss.client', function () { |
|
| 57 | + $this->app->bind('aliyun-oss.client', function() { |
|
| 58 | 58 | $config = $this->app->get('config')->get('filesystem.disks.aliyun'); |
| 59 | 59 | return new OssClient( |
| 60 | 60 | $config['access_id'], |
@@ -59,10 +59,10 @@ |
||
| 59 | 59 | if ($this->config['is_cname']) { |
| 60 | 60 | $url .= $this->config['cdn_domain']; |
| 61 | 61 | } else { |
| 62 | - $url .= $this->config['bucket'] . '.' . $this->config['endpoint']; |
|
| 62 | + $url .= $this->config['bucket'].'.'.$this->config['endpoint']; |
|
| 63 | 63 | } |
| 64 | 64 | |
| 65 | - $url .= '/' . ltrim($path, '/'); |
|
| 65 | + $url .= '/'.ltrim($path, '/'); |
|
| 66 | 66 | return $url; |
| 67 | 67 | } |
| 68 | 68 | |