@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @return mixed |
|
| 42 | + * @return string |
|
| 43 | 43 | */ |
| 44 | 44 | public function getBucket() |
| 45 | 45 | { |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | } |
| 48 | 48 | |
| 49 | 49 | /** |
| 50 | - * @param $path |
|
| 50 | + * @param string $path |
|
| 51 | 51 | * |
| 52 | 52 | * @return string |
| 53 | 53 | */ |
@@ -275,7 +275,7 @@ discard block |
||
| 275 | 275 | /** |
| 276 | 276 | * @param string $path |
| 277 | 277 | * |
| 278 | - * @return array |
|
| 278 | + * @return string |
|
| 279 | 279 | */ |
| 280 | 280 | public function read($path) |
| 281 | 281 | { |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | } |
| 385 | 385 | |
| 386 | 386 | /** |
| 387 | - * @param $content |
|
| 387 | + * @param string $content |
|
| 388 | 388 | * |
| 389 | 389 | * @return bool|string |
| 390 | 390 | */ |
@@ -400,7 +400,7 @@ discard block |
||
| 400 | 400 | } |
| 401 | 401 | |
| 402 | 402 | /** |
| 403 | - * @param $tmpfname |
|
| 403 | + * @param boolean|string $tmpfname |
|
| 404 | 404 | */ |
| 405 | 405 | private function deleteTempFile($tmpfname) |
| 406 | 406 | { |
@@ -408,8 +408,8 @@ discard block |
||
| 408 | 408 | } |
| 409 | 409 | |
| 410 | 410 | /** |
| 411 | - * @param $path |
|
| 412 | - * @param $content |
|
| 411 | + * @param string $path |
|
| 412 | + * @param string $content |
|
| 413 | 413 | * |
| 414 | 414 | * @return bool |
| 415 | 415 | */ |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | $this->deleteTempFile($tmpfname); |
| 78 | 78 | |
| 79 | - $this->setContentType($path, $contents); |
|
| 79 | + $this->setContentType($path, $contents); |
|
| 80 | 80 | } catch (RuntimeException $exception) { |
| 81 | 81 | $this->deleteTempFile($tmpfname); |
| 82 | 82 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | Cosapi::upload($this->getBucket(), $uri, $path) |
| 107 | 107 | ); |
| 108 | 108 | |
| 109 | - $this->setContentType($path, stream_get_contents($resource)); |
|
| 109 | + $this->setContentType($path, stream_get_contents($resource)); |
|
| 110 | 110 | } catch (RuntimeException $exception) { |
| 111 | 111 | if ($exception->getCode() == -4018) { |
| 112 | 112 | return $this->getMetadata($path); |
@@ -136,7 +136,7 @@ discard block |
||
| 136 | 136 | |
| 137 | 137 | $this->deleteTempFile($tmpfname); |
| 138 | 138 | |
| 139 | - $this->setContentType($path, $contents); |
|
| 139 | + $this->setContentType($path, $contents); |
|
| 140 | 140 | } catch (RuntimeException $exception) { |
| 141 | 141 | $this->deleteTempFile($tmpfname); |
| 142 | 142 | |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | Cosapi::upload($this->getBucket(), $uri, $path, $path, null, null, 0) |
| 167 | 167 | ); |
| 168 | 168 | |
| 169 | - $this->setContentType($path, stream_get_contents($resource)); |
|
| 169 | + $this->setContentType($path, stream_get_contents($resource)); |
|
| 170 | 170 | } catch (RuntimeException $exception) { |
| 171 | 171 | if ($exception->getCode() == -4018) { |
| 172 | 172 | return $this->getMetadata($path); |
@@ -199,7 +199,7 @@ discard block |
||
| 199 | 199 | */ |
| 200 | 200 | public function copy($path, $newpath) |
| 201 | 201 | { |
| 202 | - $resource = $this->read($path); |
|
| 202 | + $resource = $this->read($path); |
|
| 203 | 203 | |
| 204 | 204 | return $this->update($newpath, $resource['contents'], new Config()); |
| 205 | 205 | } |