Passed
Push — master ( 4b10e6...791118 )
by summer
08:11
created
src/AliOssServiceProvider.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,15 +45,15 @@
 block discarded – undo
45 45
 
46 46
             $endPoint  = $config['endpoint']; // 默认作为外部节点
47 47
             // $epInternal= $isCname?$cdnDomain:(empty($config['endpoint_internal']) ? $endPoint : $config['endpoint_internal']); // 内部节点
48
-            $epInternal= (empty($config['endpoint_internal']) ? $endPoint : $config['endpoint_internal']); // 内部节点
48
+            $epInternal = (empty($config['endpoint_internal']) ? $endPoint : $config['endpoint_internal']); // 内部节点
49 49
             
50
-            if($debug) Log::debug('OSS config:', $config);
50
+            if ($debug) Log::debug('OSS config:', $config);
51 51
 
52 52
             $client  = new OssClient($accessId, $accessKey, $epInternal, $isCname, $securityToken);
53 53
             $adapter = new AliOssAdapter($client, $bucket, $endPoint, $ssl, $isCname, $debug, $cdnDomain);
54 54
 
55 55
             //Log::debug($client);
56
-            $filesystem =  new Filesystem($adapter);
56
+            $filesystem = new Filesystem($adapter);
57 57
 
58 58
             $filesystem->addPlugin(new PutFile());
59 59
             $filesystem->addPlugin(new PutRemoteFile());
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,9 @@
 block discarded – undo
47 47
             // $epInternal= $isCname?$cdnDomain:(empty($config['endpoint_internal']) ? $endPoint : $config['endpoint_internal']); // 内部节点
48 48
             $epInternal= (empty($config['endpoint_internal']) ? $endPoint : $config['endpoint_internal']); // 内部节点
49 49
             
50
-            if($debug) Log::debug('OSS config:', $config);
50
+            if($debug) {
51
+                Log::debug('OSS config:', $config);
52
+            }
51 53
 
52 54
             $client  = new OssClient($accessId, $accessKey, $epInternal, $isCname, $securityToken);
53 55
             $adapter = new AliOssAdapter($client, $bucket, $endPoint, $ssl, $isCname, $debug, $cdnDomain);
Please login to merge, or discard this patch.