Passed
Branch master (d50739)
by alpha
12:01
created
Category
src/AliyunOssServiceProvider.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@  discard block
 block discarded – undo
28 28
             ], 'config');
29 29
         }
30 30
         $this->mergeConfigFrom(
31
-            __DIR__.'/config/config.php',
31
+            __DIR__ . '/config/config.php',
32 32
             'filesystems.disks.aliyun'
33 33
         );
34 34
 
35 35
         $this->app->make('filesystem')
36
-            ->extend('aliyun', function ($app, array $config) {
36
+            ->extend('aliyun', function($app, array $config) {
37 37
                 $client = $app->get(OssClient::class);
38 38
                 $config = $app->get(AliyunOssConfig::class);
39 39
 
@@ -48,14 +48,14 @@  discard block
 block discarded – undo
48 48
 
49 49
     public function register()
50 50
     {
51
-        $this->app->singleton(AliyunOssConfig::class, function ($app) {
51
+        $this->app->singleton(AliyunOssConfig::class, function($app) {
52 52
             $config = $app->get('config')->get('filesystems.disks.aliyun');
53 53
             $ossConfig = new AliyunOssConfig($config);
54 54
             $ossConfig->checkRequired();
55 55
             return $ossConfig;
56 56
         });
57 57
 
58
-        $this->app->singleton(OssClient::class, function ($app) {
58
+        $this->app->singleton(OssClient::class, function($app) {
59 59
             $ossConfig = $app->get(AliyunOssConfig::class);
60 60
             $ossClient = new OssClient(
61 61
                 $ossConfig->getAccessId(),
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
@@ -484,7 +484,7 @@
 block discarded – undo
484 484
         $contents = $dirObjects["objects"];
485 485
 
486 486
         $result = array_map([$this, 'normalizeResponse'], $contents);
487
-        $result = array_filter($result, function ($value) {
487
+        $result = array_filter($result, function($value) {
488 488
             return $value['path'] !== false;
489 489
         });
490 490
 
Please login to merge, or discard this patch.