@@ -73,7 +73,7 @@ |
||
73 | 73 | * @param string $path |
74 | 74 | * @param \DateTimeInterface $expiration |
75 | 75 | * @param array $options |
76 | - * @return string |
|
76 | + * @return \OSS\Http\ResponseCore |
|
77 | 77 | * |
78 | 78 | * @throws \RuntimeException |
79 | 79 | */ |
@@ -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 |
@@ -23,7 +23,7 @@ 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 | $client = $this->makeOssClient($app, $config); |
28 | 28 | $adapter = new AliyunOssAdapter($client, $config); |
29 | 29 | $filesystem = new Filesystem($adapter, new Config(['disable_asserts' => true])); |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | |
51 | 51 | public function register() |
52 | 52 | { |
53 | - $this->app->singleton('aliyun-oss.client', function ($app) { |
|
53 | + $this->app->singleton('aliyun-oss.client', function($app) { |
|
54 | 54 | $config = $app->get('config')->get('filesystems.disks.aliyun'); |
55 | 55 | return $this->makeOssClient($app, $config); |
56 | 56 | }); |