From 2c59e59023a8831179e7e04f78849b5e8e676033 Mon Sep 17 00:00:00 2001 From: Samuel Date: Fri, 5 Feb 2021 12:16:01 +0100 Subject: [PATCH] fix(php-cs): indentation / elseif, maybe braces? Signed-off-by: Samuel --- .../lib/Notifications.php | 31 +++++++++++-------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/apps/federatedfilesharing/lib/Notifications.php b/apps/federatedfilesharing/lib/Notifications.php index 011842e798..52aa83fad4 100644 --- a/apps/federatedfilesharing/lib/Notifications.php +++ b/apps/federatedfilesharing/lib/Notifications.php @@ -126,12 +126,14 @@ class Notifications { } else { \OC::$server->getLogger()->info( "failed sharing $name with $shareWith", - [ 'app' => 'federatedfilesharing' ]); + ['app' => 'federatedfilesharing'] + ); } } else { \OC::$server->getLogger()->info( "could not share $name, invalid contact $shareWith", - [ 'app' => 'federatedfilesharing' ]); + ['app' => 'federatedfilesharing'] + ); } return false; @@ -182,18 +184,21 @@ class Notifications { $status['ocs']['data']['token'], $status['ocs']['data']['remoteId'] ]; - } else if (! $validToken) { - \OC::$server->getLogger()->info( - "invalid or missing token requesting re-share for $filename to $remote", - [ 'app' => 'federatedfilesharing' ]); - } else if (! $validRemoteId) { - \OC::$server->getLogger()->info( - "missing remote id requesting re-share for $filename to $remote", - [ 'app' => 'federatedfilesharing' ]); + } elseif (!$validToken) { + \OC::$server->getLogger()->info( + "invalid or missing token requesting re-share for $filename to $remote", + ['app' => 'federatedfilesharing'] + ); + } elseif (!$validRemoteId) { + \OC::$server->getLogger()->info( + "missing remote id requesting re-share for $filename to $remote", + ['app' => 'federatedfilesharing'] + ); } else { - \OC::$server->getLogger()->info( - "failed requesting re-share for $filename to $remote", - [ 'app' => 'federatedfilesharing' ]); + \OC::$server->getLogger()->info( + "failed requesting re-share for $filename to $remote", + ['app' => 'federatedfilesharing'] + ); } return false;