Passed
Push — master ( 792a79...aa99c9 )
by Luo
02:36
created
src/OssAdapter.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
             $prefix = ltrim($prefix, '/');
122 122
         }
123 123
 
124
-        $callbackParam        = [
124
+        $callbackParam = [
125 125
             'callbackUrl'      => $callBackUrl,
126 126
             'callbackBody'     => 'filename=${object}&size=${size}&mimeType=${mimeType}&height=${imageInfo.height}&width=${imageInfo.width}',
127 127
             'callbackBodyType' => 'application/x-www-form-urlencoded',
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
         $expiration = $this->gmt_iso8601($end);
135 135
 
136 136
         // 最大文件大小.用户可以自己设置
137
-        $condition    = [
137
+        $condition = [
138 138
             0 => 'content-length-range',
139 139
             1 => 0,
140 140
             2 => 1048576000,
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         ];
149 149
         $conditions[] = $start;
150 150
 
151
-        $arr            = [
151
+        $arr = [
152 152
             'expiration' => $expiration,
153 153
             'conditions' => $conditions,
154 154
         ];
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
         $response['signature'] = $signature;
165 165
         $response['expire']    = $end;
166 166
         $response['callback']  = $base64_callback_body;
167
-        $response['dir']       = $prefix;  // 这个参数是设置用户上传文件时指定的前缀。
167
+        $response['dir']       = $prefix; // 这个参数是设置用户上传文件时指定的前缀。
168 168
 
169 169
         return json_encode($response);
170 170
     }
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
      */
393 393
     public function getUrl($path)
394 394
     {
395
-        return $this->normalizeHost() . ltrim($path, '/');
395
+        return $this->normalizeHost().ltrim($path, '/');
396 396
     }
397 397
 
398 398
     /**
@@ -530,7 +530,7 @@  discard block
 block discarded – undo
530 530
         if ($this->isCName) {
531 531
             $domain = $this->endpoint;
532 532
         } else {
533
-            $domain = $this->bucket . '.' . $this->endpoint;
533
+            $domain = $this->bucket.'.'.$this->endpoint;
534 534
         }
535 535
 
536 536
         if ($this->useSSL) {
@@ -539,7 +539,7 @@  discard block
 block discarded – undo
539 539
             $domain = "http://{$domain}";
540 540
         }
541 541
 
542
-        return rtrim($domain, '/') . '/';
542
+        return rtrim($domain, '/').'/';
543 543
     }
544 544
 
545 545
     /**
Please login to merge, or discard this patch.