@@ -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(), |
@@ -93,7 +93,7 @@ |
||
| 93 | 93 | * |
| 94 | 94 | * @param string[] $params |
| 95 | 95 | * |
| 96 | - * @return bool |
|
| 96 | + * @return boolean|null |
|
| 97 | 97 | * |
| 98 | 98 | * @throws BadRequestException |
| 99 | 99 | */ |