@@ -37,7 +37,7 @@ |
||
| 37 | 37 | public function getUrl(string $path): string |
| 38 | 38 | { |
| 39 | 39 | $object = $this->prefixer->prefixPath($path); |
| 40 | - return $this->config->getDomain() . '/' . ltrim($object, '/'); |
|
| 40 | + return $this->config->getDomain().'/'.ltrim($object, '/'); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -12,12 +12,12 @@ |
||
| 12 | 12 | public function boot() |
| 13 | 13 | { |
| 14 | 14 | $this->mergeConfigFrom( |
| 15 | - __DIR__ . '/../config/config.php', |
|
| 15 | + __DIR__.'/../config/config.php', |
|
| 16 | 16 | 'filesystems.disks.oss' |
| 17 | 17 | ); |
| 18 | 18 | |
| 19 | 19 | $this->app->make('filesystem') |
| 20 | - ->extend('oss', function ($app, array $config) { |
|
| 20 | + ->extend('oss', function($app, array $config) { |
|
| 21 | 21 | $aliyunConfig = new AliyunConfig($config); |
| 22 | 22 | |
| 23 | 23 | $ossClient = new OssClient($aliyunConfig->get('access_key_id'), $aliyunConfig->get('access_key_secret'), $aliyunConfig->getRequestEndpoint(), $aliyunConfig->get('is_cname', false), $aliyunConfig->get('security_token', null), $aliyunConfig->get('request_proxy', null)); |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | public function macro(): Closure |
| 19 | 19 | { |
| 20 | - return function (string $path, string $content, int $position = 0, array $options = []) { |
|
| 20 | + return function(string $path, string $content, int $position = 0, array $options = []) { |
|
| 21 | 21 | try { |
| 22 | 22 | /** |
| 23 | 23 | * @var FilesystemAdapter $this |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | public function macro(): Closure |
| 19 | 19 | { |
| 20 | - return function (string $path, string $content, int $position = 0, array $options = []) { |
|
| 20 | + return function(string $path, string $content, int $position = 0, array $options = []) { |
|
| 21 | 21 | try { |
| 22 | 22 | /** |
| 23 | 23 | * @var FilesystemAdapter $this |
@@ -15,7 +15,7 @@ discard block |
||
| 15 | 15 | public function getDomain() |
| 16 | 16 | { |
| 17 | 17 | if ($this->get('domain')) { |
| 18 | - return $this->getProtocol() . '://' . $this->get('domain'); |
|
| 18 | + return $this->getProtocol().'://'.$this->get('domain'); |
|
| 19 | 19 | } |
| 20 | 20 | return $this->getEndpointDomain(); |
| 21 | 21 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | */ |
| 26 | 26 | protected function getEndpointDomain() |
| 27 | 27 | { |
| 28 | - return $this->getProtocol() . '://' . $this->get('bucket') . '.' . $this->get('endpoint'); |
|
| 28 | + return $this->getProtocol().'://'.$this->get('bucket').'.'.$this->get('endpoint'); |
|
| 29 | 29 | } |
| 30 | 30 | |
| 31 | 31 | /** |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | */ |
| 34 | 34 | protected function getInternalDomain() |
| 35 | 35 | { |
| 36 | - return $this->getProtocol() . '://' . $this->get('bucket') . '.' . $this->get('internal'); |
|
| 36 | + return $this->getProtocol().'://'.$this->get('bucket').'.'.$this->get('internal'); |
|
| 37 | 37 | } |
| 38 | 38 | |
| 39 | 39 | /** |