summaryrefslogtreecommitdiffstats
path: root/lib/Controller
diff options
context:
space:
mode:
authorMarco Nassabain <marco.nassabain@hotmail.com>2021-03-05 22:14:56 +0100
committerSean Molenaar <SMillerDev@users.noreply.github.com>2021-04-08 22:31:21 +0200
commit2cba1e4146221f28ac195f62fbbb6cd9dbb555fd (patch)
tree1ed604e762801d196cc59f5bd1c0d159e195c74c /lib/Controller
parent4612ed9bf0115d328d22beecb07179f3ae8f460d (diff)
🧹 Cleanup code, remove spaces, rename variables
Signed-off-by: Marco Nassabain <marco.nassabain@hotmail.com>
Diffstat (limited to 'lib/Controller')
-rw-r--r--lib/Controller/ItemController.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Controller/ItemController.php b/lib/Controller/ItemController.php
index ec56a9e33..a437bf3ff 100644
--- a/lib/Controller/ItemController.php
+++ b/lib/Controller/ItemController.php
@@ -330,16 +330,16 @@ class ItemController extends Controller
/**
* @NoAdminRequired
*
- * @param int $itemId Item to share
- * @param string $shareWithId User to share with
+ * @param int $itemId Item to share
+ * @param string $shareRecipientId User to share the item with
*/
- public function share($itemId, $shareWithId)
+ public function share($itemId, $shareRecipientId)
{
try {
$this->shareService->shareItemWithUser(
$this->getUserId(),
$itemId,
- $shareWithId
+ $shareRecipientId
);
} catch (ServiceNotFoundException $ex) {
return $this->error($ex, Http::STATUS_NOT_FOUND);