@@ -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 |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | ); |
23 | 23 | |
24 | 24 | $this->app->make('filesystem') |
25 | - ->extend('aliyun', function ($app, array $config) { |
|
25 | + ->extend('aliyun', function($app, array $config) { |
|
26 | 26 | $client = $app->make('aliyun-oss.oss-client', $config); |
27 | 27 | $adapter = new AliyunOssAdapter($client, $config); |
28 | 28 | $filesystem = new Filesystem($adapter, new Config(['disable_asserts' => true])); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | public function register() |
35 | 35 | { |
36 | - $this->app->bind('aliyun-oss.oss-client', function ($app, array $config) { |
|
36 | + $this->app->bind('aliyun-oss.oss-client', function($app, array $config) { |
|
37 | 37 | return $app->make(OssClient::class, [ |
38 | 38 | 'accessKeyId' => $config['accessId'], |
39 | 39 | 'accessKeySecret' => $config['accessKey'], |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | ]); |
44 | 44 | }); |
45 | 45 | |
46 | - $this->app->singleton('aliyun-oss.client', function ($app) { |
|
46 | + $this->app->singleton('aliyun-oss.client', function($app) { |
|
47 | 47 | $config = $app->get('config')->get('filesystems.disks.aliyun'); |
48 | 48 | return $app->make('aliyun-oss.oss-client', $config); |
49 | 49 | }); |
@@ -27,7 +27,7 @@ |
||
27 | 27 | } |
28 | 28 | |
29 | 29 | $resource = fopen($remoteUrl, 'r'); |
30 | - $status = (bool)$this->filesystem->getAdapter()->writeStream($path, $resource, $config); |
|
30 | + $status = (bool) $this->filesystem->getAdapter()->writeStream($path, $resource, $config); |
|
31 | 31 | fclose($resource); |
32 | 32 | return $status; |
33 | 33 | } |