@@ -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 | } |
@@ -23,21 +23,21 @@ discard block |
||
23 | 23 | ); |
24 | 24 | |
25 | 25 | $this->app->make('filesystem') |
26 | - ->extend('aliyun', function ($app, array $config) { |
|
26 | + ->extend('aliyun', function($app, array $config) { |
|
27 | 27 | return $app->make('aliyun-oss.oss-filesystem', $config); |
28 | 28 | }); |
29 | 29 | } |
30 | 30 | |
31 | 31 | public function register() |
32 | 32 | { |
33 | - $this->app->bind('aliyun-oss.oss-client', function ($app, array $config) { |
|
33 | + $this->app->bind('aliyun-oss.oss-client', function($app, array $config) { |
|
34 | 34 | $ossConfig = new AliyunOssConfig($config); |
35 | 35 | $client = $app->make(OssClient::class, $ossConfig->getOssClientParameters()); |
36 | 36 | $client->setUseSSL($ossConfig->get('use_ssl', false)); |
37 | 37 | return $client; |
38 | 38 | }); |
39 | 39 | |
40 | - $this->app->bind('aliyun-oss.oss-filesystem', function ($app, array $config) { |
|
40 | + $this->app->bind('aliyun-oss.oss-filesystem', function($app, array $config) { |
|
41 | 41 | $client = $app->make('aliyun-oss.oss-client', $config); |
42 | 42 | $adapter = new AliyunOssAdapter($client, new AliyunOssConfig($config)); |
43 | 43 | $filesystem = new Filesystem($adapter, new Config(['disable_asserts' => true])); |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | return $filesystem; |
47 | 47 | }); |
48 | 48 | |
49 | - $this->app->singleton('aliyun-oss.client', function ($app) { |
|
49 | + $this->app->singleton('aliyun-oss.client', function($app) { |
|
50 | 50 | $config = $app->get('config')->get('filesystems.disks.aliyun'); |
51 | 51 | return $app->make('aliyun-oss.oss-client', $config); |
52 | 52 | }); |
@@ -49,7 +49,7 @@ |
||
49 | 49 | */ |
50 | 50 | public function getUrl($path) |
51 | 51 | { |
52 | - return $this->ossConfig->getUrlDomain().'/' . ltrim($path, '/'); |
|
52 | + return $this->ossConfig->getUrlDomain().'/'.ltrim($path, '/'); |
|
53 | 53 | } |
54 | 54 | |
55 | 55 | /** |