Passed
Push — master ( f75521...69da7a )
by alpha
02:40
created
src/ServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,21 +23,21 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/AliyunOssAdapter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.