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