@@ -54,7 +54,7 @@ discard block |
||
| 54 | 54 | } |
| 55 | 55 | |
| 56 | 56 | /** |
| 57 | - * @param $path |
|
| 57 | + * @param string $path |
|
| 58 | 58 | * |
| 59 | 59 | * @return string |
| 60 | 60 | */ |
@@ -391,7 +391,7 @@ discard block |
||
| 391 | 391 | } |
| 392 | 392 | |
| 393 | 393 | /** |
| 394 | - * @param $content |
|
| 394 | + * @param string $content |
|
| 395 | 395 | * |
| 396 | 396 | * @return string|false |
| 397 | 397 | */ |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | } |
| 408 | 408 | |
| 409 | 409 | /** |
| 410 | - * @param $tmpfname |
|
| 410 | + * @param string|false $tmpfname |
|
| 411 | 411 | * |
| 412 | 412 | * @return bool |
| 413 | 413 | */ |
@@ -417,8 +417,8 @@ discard block |
||
| 417 | 417 | } |
| 418 | 418 | |
| 419 | 419 | /** |
| 420 | - * @param $path |
|
| 421 | - * @param $content |
|
| 420 | + * @param string $path |
|
| 421 | + * @param string $content |
|
| 422 | 422 | * |
| 423 | 423 | * @return bool |
| 424 | 424 | */ |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | |
| 79 | 79 | try { |
| 80 | 80 | $response = Cosapi::upload($this->getBucket(), $tmpfname, $path, |
| 81 | - null, null, $config->get('insertOnly', 1)); |
|
| 81 | + null, null, $config->get('insertOnly', 1)); |
|
| 82 | 82 | |
| 83 | 83 | $this->deleteTempFile($tmpfname); |
| 84 | 84 | |
@@ -112,7 +112,7 @@ discard block |
||
| 112 | 112 | $uri = stream_get_meta_data($resource)['uri']; |
| 113 | 113 | |
| 114 | 114 | $response = Cosapi::upload($this->getBucket(), $uri, $path, |
| 115 | - null, null, $config->get('insertOnly', 1)); |
|
| 115 | + null, null, $config->get('insertOnly', 1)); |
|
| 116 | 116 | |
| 117 | 117 | $response = $this->normalizeResponse($response); |
| 118 | 118 | |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | |
| 141 | 141 | try { |
| 142 | 142 | $response = Cosapi::upload($this->getBucket(), $tmpfname, $path, |
| 143 | - null, null, $config->get('insertOnly', 0)); |
|
| 143 | + null, null, $config->get('insertOnly', 0)); |
|
| 144 | 144 | |
| 145 | 145 | $this->deleteTempFile($tmpfname); |
| 146 | 146 | |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | $uri = stream_get_meta_data($resource)['uri']; |
| 175 | 175 | |
| 176 | 176 | $response = Cosapi::upload($this->getBucket(), $uri, $path, |
| 177 | - null, null, $config->get('insertOnly', 0)); |
|
| 177 | + null, null, $config->get('insertOnly', 0)); |
|
| 178 | 178 | |
| 179 | 179 | $response = $this->normalizeResponse($response); |
| 180 | 180 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | $this->bucket = $config['bucket']; |
| 40 | 40 | $this->debug = $config['debug']; |
| 41 | 41 | |
| 42 | - $this->setPathPrefix($config['protocol'] . '://' . $config['domain'] . '/'); |
|
| 42 | + $this->setPathPrefix($config['protocol'].'://'.$config['domain'].'/'); |
|
| 43 | 43 | |
| 44 | 44 | Cosapi::setTimeout($config['timeout']); |
| 45 | 45 | Cosapi::setRegion($config['region']); |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | public function has($path) |
| 274 | 274 | { |
| 275 | 275 | try { |
| 276 | - return (bool)$this->getMetadata($path); |
|
| 276 | + return (bool) $this->getMetadata($path); |
|
| 277 | 277 | } catch (RuntimeException $exception) { |
| 278 | 278 | return false; |
| 279 | 279 | } |