@@ -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 | */  | 
                                                        
@@ -395,7 +395,7 @@ discard block  | 
                                                    ||
| 395 | 395 | }  | 
                                                        
| 396 | 396 | |
| 397 | 397 | /**  | 
                                                        
| 398 | - * @param $content  | 
                                                        |
| 398 | + * @param string $content  | 
                                                        |
| 399 | 399 | *  | 
                                                        
| 400 | 400 | * @return string|bool  | 
                                                        
| 401 | 401 | */  | 
                                                        
@@ -411,7 +411,7 @@ discard block  | 
                                                    ||
| 411 | 411 | }  | 
                                                        
| 412 | 412 | |
| 413 | 413 | /**  | 
                                                        
| 414 | - * @param $tmpfname  | 
                                                        |
| 414 | + * @param string|boolean $tmpfname  | 
                                                        |
| 415 | 415 | *  | 
                                                        
| 416 | 416 | * @return bool  | 
                                                        
| 417 | 417 | */  | 
                                                        
@@ -421,8 +421,8 @@ discard block  | 
                                                    ||
| 421 | 421 | }  | 
                                                        
| 422 | 422 | |
| 423 | 423 | /**  | 
                                                        
| 424 | - * @param $path  | 
                                                        |
| 425 | - * @param $content  | 
                                                        |
| 424 | + * @param string $path  | 
                                                        |
| 425 | + * @param string $content  | 
                                                        |
| 426 | 426 | *  | 
                                                        
| 427 | 427 | * @return bool  | 
                                                        
| 428 | 428 | */  | 
                                                        
@@ -95,7 +95,7 @@ discard block  | 
                                                    ||
| 95 | 95 | throw $exception;  | 
                                                        
| 96 | 96 | }  | 
                                                        
| 97 | 97 | |
| 98 | - return (bool)$response;  | 
                                                        |
| 98 | + return (bool) $response;  | 
                                                        |
| 99 | 99 | }  | 
                                                        
| 100 | 100 | |
| 101 | 101 | /**  | 
                                                        
@@ -122,7 +122,7 @@ discard block  | 
                                                    ||
| 122 | 122 | |
| 123 | 123 | $this->setContentType($path, stream_get_contents($resource));  | 
                                                        
| 124 | 124 | |
| 125 | - return (bool)$response;  | 
                                                        |
| 125 | + return (bool) $response;  | 
                                                        |
| 126 | 126 | }  | 
                                                        
| 127 | 127 | |
| 128 | 128 | /**  | 
                                                        
@@ -157,7 +157,7 @@ discard block  | 
                                                    ||
| 157 | 157 | throw $exception;  | 
                                                        
| 158 | 158 | }  | 
                                                        
| 159 | 159 | |
| 160 | - return (bool)$response;  | 
                                                        |
| 160 | + return (bool) $response;  | 
                                                        |
| 161 | 161 | }  | 
                                                        
| 162 | 162 | |
| 163 | 163 | /**  | 
                                                        
@@ -184,7 +184,7 @@ discard block  | 
                                                    ||
| 184 | 184 | |
| 185 | 185 | $this->setContentType($path, stream_get_contents($resource));  | 
                                                        
| 186 | 186 | |
| 187 | - return (bool)$response;  | 
                                                        |
| 187 | + return (bool) $response;  | 
                                                        |
| 188 | 188 | }  | 
                                                        
| 189 | 189 | |
| 190 | 190 | /**  | 
                                                        
@@ -195,7 +195,7 @@ discard block  | 
                                                    ||
| 195 | 195 | */  | 
                                                        
| 196 | 196 | public function rename($path, $newpath)  | 
                                                        
| 197 | 197 |      { | 
                                                        
| 198 | - return (bool)$this->normalizeResponse(  | 
                                                        |
| 198 | + return (bool) $this->normalizeResponse(  | 
                                                        |
| 199 | 199 | Cosapi::moveFile($this->getBucket(), $path, $newpath, 1)  | 
                                                        
| 200 | 200 | );  | 
                                                        
| 201 | 201 | }  | 
                                                        
@@ -208,7 +208,7 @@ discard block  | 
                                                    ||
| 208 | 208 | */  | 
                                                        
| 209 | 209 | public function copy($path, $newpath)  | 
                                                        
| 210 | 210 |      { | 
                                                        
| 211 | - return (bool)$this->normalizeResponse(  | 
                                                        |
| 211 | + return (bool) $this->normalizeResponse(  | 
                                                        |
| 212 | 212 | Cosapi::copyFile($this->getBucket(), $path, $newpath, 1)  | 
                                                        
| 213 | 213 | );  | 
                                                        
| 214 | 214 | }  | 
                                                        
@@ -220,7 +220,7 @@ discard block  | 
                                                    ||
| 220 | 220 | */  | 
                                                        
| 221 | 221 | public function delete($path)  | 
                                                        
| 222 | 222 |      { | 
                                                        
| 223 | - return (bool)$this->normalizeResponse(  | 
                                                        |
| 223 | + return (bool) $this->normalizeResponse(  | 
                                                        |
| 224 | 224 | Cosapi::delFile($this->getBucket(), $path)  | 
                                                        
| 225 | 225 | );  | 
                                                        
| 226 | 226 | }  | 
                                                        
@@ -232,7 +232,7 @@ discard block  | 
                                                    ||
| 232 | 232 | */  | 
                                                        
| 233 | 233 | public function deleteDir($dirname)  | 
                                                        
| 234 | 234 |      { | 
                                                        
| 235 | - return (bool)$this->normalizeResponse(  | 
                                                        |
| 235 | + return (bool) $this->normalizeResponse(  | 
                                                        |
| 236 | 236 | Cosapi::delFolder($this->getBucket(), $dirname)  | 
                                                        
| 237 | 237 | );  | 
                                                        
| 238 | 238 | }  | 
                                                        
@@ -245,7 +245,7 @@ discard block  | 
                                                    ||
| 245 | 245 | */  | 
                                                        
| 246 | 246 | public function createDir($dirname, Config $config)  | 
                                                        
| 247 | 247 |      { | 
                                                        
| 248 | - return (bool)$this->normalizeResponse(  | 
                                                        |
| 248 | + return (bool) $this->normalizeResponse(  | 
                                                        |
| 249 | 249 | Cosapi::createFolder($this->getBucket(), $dirname)  | 
                                                        
| 250 | 250 | );  | 
                                                        
| 251 | 251 | }  | 
                                                        
@@ -260,7 +260,7 @@ discard block  | 
                                                    ||
| 260 | 260 |      { | 
                                                        
| 261 | 261 | $visibility = $visibility === AdapterInterface::VISIBILITY_PUBLIC ? 'eWPrivateRPublic' : 'eWRPrivate';  | 
                                                        
| 262 | 262 | |
| 263 | - return (bool)$this->normalizeResponse(  | 
                                                        |
| 263 | + return (bool) $this->normalizeResponse(  | 
                                                        |
| 264 | 264 | Cosapi::update($this->getBucket(), $path, null, $visibility)  | 
                                                        
| 265 | 265 | );  | 
                                                        
| 266 | 266 | }  | 
                                                        
@@ -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 | }  |