@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | |
| 33 | 33 | public function register() |
| 34 | 34 | { |
| 35 | - $this->app->bind(AliyunOssDriver::class, function () { |
|
| 35 | + $this->app->bind(AliyunOssDriver::class, function() { |
|
| 36 | 36 | $cache = $this->app->get(Cache::class); |
| 37 | 37 | $config = $this->app->get('config')->get('filesystem.disks.aliyun'); |
| 38 | 38 | $driver = new AliyunOssDriver($cache, $config); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | }); |
| 41 | 41 | $this->app->bind('aliyun-oss.driver', AliyunOssDriver::class); |
| 42 | 42 | |
| 43 | - $this->app->bind('aliyun-oss.filesystem', function () { |
|
| 43 | + $this->app->bind('aliyun-oss.filesystem', function() { |
|
| 44 | 44 | $adapter = $this->app->get('aliyun-oss.adapter'); |
| 45 | 45 | |
| 46 | 46 | $filesystem = new Filesystem($adapter, new Config(['disable_asserts' => true])); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | return $filesystem; |
| 50 | 50 | }); |
| 51 | 51 | |
| 52 | - $this->app->bind('aliyun-oss.adapter', function () { |
|
| 52 | + $this->app->bind('aliyun-oss.adapter', function() { |
|
| 53 | 53 | $config = $this->app->get('config')->get('filesystem.disks.aliyun'); |
| 54 | 54 | $client = $this->app->get(OssClient::class); |
| 55 | 55 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | return $adapter; |
| 59 | 59 | }); |
| 60 | 60 | |
| 61 | - $this->app->bind(OssClient::class, function () { |
|
| 61 | + $this->app->bind(OssClient::class, function() { |
|
| 62 | 62 | $config = $this->app->get('config')->get('filesystem.disks.aliyun'); |
| 63 | 63 | return new OssClient( |
| 64 | 64 | $config['accessId'], |
@@ -59,10 +59,10 @@ |
||
| 59 | 59 | if ($this->config['isCname']) { |
| 60 | 60 | $url .= $this->config['cdnDomain']; |
| 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 | |