Passed
Push — master ( cbec87...7e0337 )
by alpha
02:15
created
src/AliyunOssAdapter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/ServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
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
                 $client = $app->make('aliyun-oss.oss-client', $config);
27 27
                 $adapter = new AliyunOssAdapter($client, $config);
28 28
                 $filesystem = new Filesystem($adapter, new Config(['disable_asserts' => true]));
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
     public function register()
35 35
     {
36
-        $this->app->bind('aliyun-oss.oss-client', function ($app, array $config) {
36
+        $this->app->bind('aliyun-oss.oss-client', function($app, array $config) {
37 37
             return $app->make(OssClient::class, [
38 38
                 'accessKeyId' => $config['accessId'],
39 39
                 'accessKeySecret' => $config['accessKey'],
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
             ]);
44 44
         });
45 45
 
46
-        $this->app->singleton('aliyun-oss.client', function ($app) {
46
+        $this->app->singleton('aliyun-oss.client', function($app) {
47 47
             $config = $app->get('config')->get('filesystems.disks.aliyun');
48 48
             return $app->make('aliyun-oss.oss-client', $config);
49 49
         });
Please login to merge, or discard this patch.
src/Plugins/PutRemoteFile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.