@@ -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) { |
@@ -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 | /** |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | |
105 | 105 | $multipart = []; |
106 | 106 | foreach ($postData as $key => $value) { |
107 | - $multipart[] = ['name' => $key, 'contents' => $value]; |
|
107 | + $multipart[] = ['name' => $key, 'contents' => $value]; |
|
108 | 108 | } |
109 | 109 | $multipart[] = [ |
110 | 110 | 'name' => 'file', |