diff options
author | Marco Nassabain <marco.nassabain@hotmail.com> | 2021-03-04 21:35:04 +0100 |
---|---|---|
committer | Sean Molenaar <SMillerDev@users.noreply.github.com> | 2021-04-08 22:31:21 +0200 |
commit | d92d77c066725981a1c323d85d2015411c74a9fe (patch) | |
tree | 844aa695f58790cd4282e33a4463b857c73247c3 /lib/Service/ShareService.php | |
parent | d275a5b9e76388b790a40576c8db3f22bd7fdc5d (diff) |
🚑 Fix errors in ShareService
- change argument $id to $itemId
- import Exceptions
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Service/ShareService.php')
-rw-r--r-- | lib/Service/ShareService.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/lib/Service/ShareService.php b/lib/Service/ShareService.php index bb9bee241..db7f73c7e 100644 --- a/lib/Service/ShareService.php +++ b/lib/Service/ShareService.php @@ -15,6 +15,9 @@ use \OCA\News\Db\Feed; use \Psr\Log\LoggerInterface; +use OCA\News\Service\Exceptions\ServiceNotFoundException; +use OCP\AppFramework\Db\DoesNotExistException; + /** * Class ImportService * @@ -61,9 +64,9 @@ class ShareService /** * Share an item with a user * - * @param string $userId ID of user sharing the item - * @param int $id Item ID - * @param string $shareWithId ID of user to share with + * @param string $userId ID of user sharing the item + * @param int $itemId Item ID + * @param string $shareRecipientId ID of user to share with * * Sharing by copying - the item is duplicated, and the 'sharedBy' * field is filled accordingly. @@ -73,7 +76,7 @@ class ShareService * @return Item * @throws ServiceNotFoundException|ServiceConflictException */ - public function shareItemWithUser(string $userId, int $id, string $shareRecipientId) + public function shareItemWithUser(string $userId, int $itemId, string $shareRecipientId) { // find item to share try { |