Completed
Push — master ( f0e226...e1b15c )
by sabaku
04:13
created
src/Upyun/Uploader.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
         if(! $useBlock) {
32 32
             $req = new Rest($this->config);
33 33
             return $req->request('PUT', $path)
34
-                       ->withHeaders($params)
35
-                       ->withFile($stream)
36
-                       ->send();
34
+                        ->withHeaders($params)
35
+                        ->withFile($stream)
36
+                        ->send();
37 37
         } else {
38 38
             return $this->pointUpload($path, $stream, $params);
39 39
         }
Please login to merge, or discard this patch.
src/Upyun/Config.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@
 block discarded – undo
111 111
             throw new \Exception('form api key is empty.');
112 112
         }
113 113
 
114
-       return $this->formApiKey;
114
+        return $this->formApiKey;
115 115
     }
116 116
 
117 117
     public function setFormApiKey($key) {
Please login to merge, or discard this patch.
src/Upyun/Video.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
         $callbackParams = array();
88 88
         foreach($callbackKeys as $key) {
89 89
             if(isset($_POST[$key])) {
90
-               $callbackParams[$key] = Util::trim($_POST[$key]);
90
+                $callbackParams[$key] = Util::trim($_POST[$key]);
91 91
             }
92 92
         }
93 93
 
Please login to merge, or discard this patch.
src/Upyun/Api/Multi.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
     public function __construct(Config $config) {
19 19
         $this->config = $config;
20 20
         $this->url = ($this->config->useSsl ? 'https://' : 'http://') . Config::ED_FORM . '/'.
21
-                     $this->config->bucketName;
21
+                        $this->config->bucketName;
22 22
     }
23 23
 
24 24
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
         $multipart = [];
105 105
         foreach($postData as $key => $value) {
106
-           $multipart[] = ['name' => $key, 'contents' => $value];
106
+            $multipart[] = ['name' => $key, 'contents' => $value];
107 107
         }
108 108
         $multipart[] = [
109 109
             'name' => 'file',
Please login to merge, or discard this patch.