aboutsummaryrefslogtreecommitdiffstats
path: root/apps/sharebymail
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-08 08:51:08 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-08 08:51:08 +0100
commit69b26c73f3af0b72e17a3d764d45fdee91ce3a24 (patch)
tree458e17139747bbe8195b46b6dc2dfafe9c34557e /apps/sharebymail
parente148a151c16665fc2b8254482a0a6c77b11bafa9 (diff)
downloadnextcloud-server-69b26c73f3af0b72e17a3d764d45fdee91ce3a24.tar.gz
nextcloud-server-69b26c73f3af0b72e17a3d764d45fdee91ce3a24.zip
Fix some redundant casts
Happier psalm Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/sharebymail')
-rw-r--r--apps/sharebymail/lib/ShareByMailProvider.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/sharebymail/lib/ShareByMailProvider.php b/apps/sharebymail/lib/ShareByMailProvider.php
index 03e46c8e021..2484ccdd720 100644
--- a/apps/sharebymail/lib/ShareByMailProvider.php
+++ b/apps/sharebymail/lib/ShareByMailProvider.php
@@ -690,9 +690,7 @@ class ShareByMailProvider implements IShareProvider {
$qb->setValue('file_target', $qb->createNamedParameter(''));
$qb->execute();
- $id = $qb->getLastInsertId();
-
- return (int)$id;
+ return $qb->getLastInsertId();
}
/**