@@ -265,7 +265,7 @@ |
||
| 265 | 265 | /** |
| 266 | 266 | * Check if value is null or an array has any null item |
| 267 | 267 | * |
| 268 | - * @param mixed $param |
|
| 268 | + * @param string[] $param |
|
| 269 | 269 | * |
| 270 | 270 | * @return bool |
| 271 | 271 | */ |
@@ -72,11 +72,9 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * send server-to-server share to remote server |
| 74 | 74 | * |
| 75 | - * @param Address $shareWithAddress |
|
| 76 | 75 | * @param Address $ownerAddress |
| 77 | 76 | * @param Address $sharedByAddress |
| 78 | 77 | * @param string $token |
| 79 | - * @param string $shareWith |
|
| 80 | 78 | * @param string $name |
| 81 | 79 | * @param int $remote_id |
| 82 | 80 | * |
@@ -319,6 +317,11 @@ discard block |
||
| 319 | 317 | return $result; |
| 320 | 318 | } |
| 321 | 319 | |
| 320 | + /** |
|
| 321 | + * @param string $token |
|
| 322 | + * @param string $name |
|
| 323 | + * @param integer $remote_id |
|
| 324 | + */ |
|
| 322 | 325 | protected function sendOcmRemoteShare(Address $shareWithAddress, Address $ownerAddress, Address $sharedByAddress, $token, $name, $remote_id) { |
| 323 | 326 | $fields = [ |
| 324 | 327 | 'shareWith' => $shareWithAddress->getCloudId(), |
@@ -347,6 +350,11 @@ discard block |
||
| 347 | 350 | return false; |
| 348 | 351 | } |
| 349 | 352 | |
| 353 | + /** |
|
| 354 | + * @param string $token |
|
| 355 | + * @param string $name |
|
| 356 | + * @param integer $remote_id |
|
| 357 | + */ |
|
| 350 | 358 | protected function sendPreOcmRemoteShare(Address $shareWithAddress, Address $ownerAddress, Address $sharedByAddress, $token, $name, $remote_id) { |
| 351 | 359 | $fields = [ |
| 352 | 360 | 'shareWith' => $shareWithAddress->getUserId(), |