|
91 | 91 | /** |
92 | 92 | * @package OCA\Files_Sharing\API |
93 | 93 | * |
94 | | - * @psalm-import-type FilesSharingShare from ResponseDefinitions |
| 94 | + * @psalm-import-type Files_SharingShare from ResponseDefinitions |
95 | 95 | */ |
96 | 96 | class ShareAPIController extends OCSController { |
97 | 97 |
|
@@ -177,7 +177,7 @@ public function __construct( |
177 | 177 | * |
178 | 178 | * @param \OCP\Share\IShare $share |
179 | 179 | * @param Node|null $recipientNode |
180 | | - * @return FilesSharingShare |
| 180 | + * @return Files_SharingShare |
181 | 181 | * @throws NotFoundException In case the node can't be resolved. |
182 | 182 | * |
183 | 183 | * @suppress PhanUndeclaredClassMethod |
@@ -508,7 +508,7 @@ private function getCachedFederatedDisplayName(string $userId, bool $cacheOnly = |
508 | 508 | * |
509 | 509 | * @param string $id ID of the share |
510 | 510 | * @param bool $include_tags Include tags in the share |
511 | | - * @return DataResponse<Http::STATUS_OK, FilesSharingShare, array{}> |
| 511 | + * @return DataResponse<Http::STATUS_OK, Files_SharingShare, array{}> |
512 | 512 | * @throws OCSNotFoundException Share not found |
513 | 513 | * |
514 | 514 | * 200: Share returned |
@@ -602,7 +602,7 @@ public function deleteShare(string $id): DataResponse { |
602 | 602 | * @param string $label Label for the share (only used in link and email) |
603 | 603 | * @param string|null $attributes Additional attributes for the share |
604 | 604 | * |
605 | | - * @return DataResponse<Http::STATUS_OK, FilesSharingShare, array{}> |
| 605 | + * @return DataResponse<Http::STATUS_OK, Files_SharingShare, array{}> |
606 | 606 | * @throws OCSBadRequestException Unknown share type |
607 | 607 | * @throws OCSException |
608 | 608 | * @throws OCSForbiddenException Creating the share is not allowed |
@@ -879,7 +879,7 @@ public function createShare( |
879 | 879 | * @param null|Node $node |
880 | 880 | * @param boolean $includeTags |
881 | 881 | * |
882 | | - * @return FilesSharingShare[] |
| 882 | + * @return Files_SharingShare[] |
883 | 883 | */ |
884 | 884 | private function getSharedWithMe($node, bool $includeTags): array { |
885 | 885 | $userShares = $this->shareManager->getSharedWith($this->currentUser, IShare::TYPE_USER, $node, -1, 0); |
@@ -916,7 +916,7 @@ private function getSharedWithMe($node, bool $includeTags): array { |
916 | 916 | /** |
917 | 917 | * @param \OCP\Files\Node $folder |
918 | 918 | * |
919 | | - * @return FilesSharingShare[] |
| 919 | + * @return Files_SharingShare[] |
920 | 920 | * @throws OCSBadRequestException |
921 | 921 | * @throws NotFoundException |
922 | 922 | */ |
@@ -978,7 +978,7 @@ private function getSharesInDir(Node $folder): array { |
978 | 978 | * @param string $path Get shares for a specific path |
979 | 979 | * @param string $include_tags Include tags in the share |
980 | 980 | * |
981 | | - * @return DataResponse<Http::STATUS_OK, FilesSharingShare[], array{}> |
| 981 | + * @return DataResponse<Http::STATUS_OK, Files_SharingShare[], array{}> |
982 | 982 | * @throws OCSNotFoundException The folder was not found or is inaccessible |
983 | 983 | * |
984 | 984 | * 200: Shares returned |
@@ -1026,7 +1026,7 @@ public function getShares( |
1026 | 1026 | * @param bool $subFiles |
1027 | 1027 | * @param bool $includeTags |
1028 | 1028 | * |
1029 | | - * @return FilesSharingShare[] |
| 1029 | + * @return Files_SharingShare[] |
1030 | 1030 | * @throws NotFoundException |
1031 | 1031 | * @throws OCSBadRequestException |
1032 | 1032 | */ |
@@ -1111,7 +1111,7 @@ private function getFormattedShares( |
1111 | 1111 | * |
1112 | 1112 | * @param string $path Path all shares will be relative to |
1113 | 1113 | * |
1114 | | - * @return DataResponse<Http::STATUS_OK, FilesSharingShare[], array{}> |
| 1114 | + * @return DataResponse<Http::STATUS_OK, Files_SharingShare[], array{}> |
1115 | 1115 | * @throws InvalidPathException |
1116 | 1116 | * @throws NotFoundException |
1117 | 1117 | * @throws OCSNotFoundException The given path is invalid |
@@ -1213,7 +1213,7 @@ private function hasPermission(int $permissionsSet, int $permissionsToCheck): bo |
1213 | 1213 | * @param string|null $label New label |
1214 | 1214 | * @param string|null $hideDownload New condition if the download should be hidden |
1215 | 1215 | * @param string|null $attributes New additional attributes |
1216 | | - * @return DataResponse<Http::STATUS_OK, FilesSharingShare, array{}> |
| 1216 | + * @return DataResponse<Http::STATUS_OK, Files_SharingShare, array{}> |
1217 | 1217 | * @throws OCSBadRequestException Share could not be updated because the requested changes are invalid |
1218 | 1218 | * @throws OCSForbiddenException Missing permissions to update the share |
1219 | 1219 | * @throws OCSNotFoundException Share not found |
@@ -1409,7 +1409,7 @@ public function updateShare( |
1409 | 1409 | * |
1410 | 1410 | * Get all shares that are still pending |
1411 | 1411 | * |
1412 | | - * @return DataResponse<Http::STATUS_OK, FilesSharingShare[], array{}> |
| 1412 | + * @return DataResponse<Http::STATUS_OK, Files_SharingShare[], array{}> |
1413 | 1413 | * |
1414 | 1414 | * 200: Pending shares returned |
1415 | 1415 | */ |
|
0 commit comments