aboutsummaryrefslogtreecommitdiffstats
path: root/apps/admin_audit/lib/Actions/Sharing.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2021-03-05 15:02:35 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2021-03-08 08:56:53 +0100
commit109b84b025f75d84845a4a5a299861242d4fa43f (patch)
tree53d3caa5628efc5dc4a79d37c1476e589302f2ed /apps/admin_audit/lib/Actions/Sharing.php
parentf5dc657e941e23a98ef8f040d61149a671bcb5da (diff)
downloadnextcloud-server-109b84b025f75d84845a4a5a299861242d4fa43f.tar.gz
nextcloud-server-109b84b025f75d84845a4a5a299861242d4fa43f.zip
Add return type to functions
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/admin_audit/lib/Actions/Sharing.php')
-rw-r--r--apps/admin_audit/lib/Actions/Sharing.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/admin_audit/lib/Actions/Sharing.php b/apps/admin_audit/lib/Actions/Sharing.php
index dc3ede0ae6d..fb070c565a7 100644
--- a/apps/admin_audit/lib/Actions/Sharing.php
+++ b/apps/admin_audit/lib/Actions/Sharing.php
@@ -43,7 +43,7 @@ class Sharing extends Action {
*
* @param array $params
*/
- public function shared(array $params) {
+ public function shared(array $params): void {
if ($params['shareType'] === IShare::TYPE_LINK) {
$this->log(
'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)',
@@ -168,7 +168,7 @@ class Sharing extends Action {
*
* @param array $params
*/
- public function unshare(array $params) {
+ public function unshare(array $params): void {
if ($params['shareType'] === IShare::TYPE_LINK) {
$this->log(
'The %s "%s" with ID "%s" has been unshared (Share ID: %s)',
@@ -284,7 +284,7 @@ class Sharing extends Action {
*
* @param array $params
*/
- public function updatePermissions(array $params) {
+ public function updatePermissions(array $params): void {
$this->log(
'The permissions of the shared %s "%s" with ID "%s" have been changed to "%s"',
$params,
@@ -302,7 +302,7 @@ class Sharing extends Action {
*
* @param array $params
*/
- public function updatePassword(array $params) {
+ public function updatePassword(array $params): void {
$this->log(
'The password of the publicly shared %s "%s" with ID "%s" has been changed',
$params,
@@ -319,7 +319,7 @@ class Sharing extends Action {
*
* @param array $params
*/
- public function updateExpirationDate(array $params) {
+ public function updateExpirationDate(array $params): void {
$this->log(
'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"',
$params,
@@ -336,7 +336,7 @@ class Sharing extends Action {
*
* @param array $params
*/
- public function shareAccessed(array $params) {
+ public function shareAccessed(array $params): void {
$this->log(
'The shared %s with the token "%s" by "%s" has been accessed.',
$params,