@@ -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 | } |
@@ -51,7 +51,7 @@ |
||
| 51 | 51 | public function getUrl($path) |
| 52 | 52 | { |
| 53 | 53 | $object = $this->applyPathPrefix($path); |
| 54 | - return $this->ossConfig->getUrlDomain() . '/' . ltrim($object, '/'); |
|
| 54 | + return $this->ossConfig->getUrlDomain().'/'.ltrim($object, '/'); |
|
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
@@ -22,14 +22,14 @@ 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 | return $app->make('aliyun-oss.oss-filesystem', $config); |
| 27 | 27 | }); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | 30 | public function register() |
| 31 | 31 | { |
| 32 | - $this->app->bind('aliyun-oss.oss-client', function ($app, array $config) { |
|
| 32 | + $this->app->bind('aliyun-oss.oss-client', function($app, array $config) { |
|
| 33 | 33 | $ossConfig = new Config($config); |
| 34 | 34 | |
| 35 | 35 | $client = $app->make(OssClient::class, $ossConfig->getOssClientParameters()); |
@@ -38,13 +38,13 @@ discard block |
||
| 38 | 38 | }); |
| 39 | 39 | |
| 40 | 40 | |
| 41 | - $this->app->bind('aliyun-oss.oss-adapter', function ($app, array $config) { |
|
| 41 | + $this->app->bind('aliyun-oss.oss-adapter', function($app, array $config) { |
|
| 42 | 42 | $client = $app->make('aliyun-oss.oss-client', $config); |
| 43 | 43 | |
| 44 | 44 | return new Adapter($client, new Config($config)); |
| 45 | 45 | }); |
| 46 | 46 | |
| 47 | - $this->app->bind('aliyun-oss.oss-filesystem', function ($app, array $config) { |
|
| 47 | + $this->app->bind('aliyun-oss.oss-filesystem', function($app, array $config) { |
|
| 48 | 48 | $adapter = $app->make('aliyun-oss.oss-adapter', $config); |
| 49 | 49 | |
| 50 | 50 | $filesystem = new Filesystem($adapter, new FlysystemConfig(['disable_asserts' => true])); |