@@ -31,9 +31,9 @@ |
||
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 | } |
@@ -111,7 +111,7 @@ |
||
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) { |
@@ -87,7 +87,7 @@ |
||
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 |
@@ -18,7 +18,7 @@ discard block |
||
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 |
||
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', |