diff options
author | Samuel <faust64@gmail.com> | 2021-02-05 12:16:01 +0100 |
---|---|---|
committer | Samuel <faust64@gmail.com> | 2021-02-05 12:16:01 +0100 |
commit | 2c59e59023a8831179e7e04f78849b5e8e676033 (patch) | |
tree | d92c74c23a6b53844567ff6e7cb7596445b7c14b | |
parent | e41afea7396412b24077db615016ae55b6b4c404 (diff) | |
download | nextcloud-server-2c59e59023a8831179e7e04f78849b5e8e676033.tar.gz nextcloud-server-2c59e59023a8831179e7e04f78849b5e8e676033.zip |
fix(php-cs): indentation / elseif, maybe braces?
Signed-off-by: Samuel <faust64@gmail.com>
-rw-r--r-- | apps/federatedfilesharing/lib/Notifications.php | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/apps/federatedfilesharing/lib/Notifications.php b/apps/federatedfilesharing/lib/Notifications.php index 011842e7981..52aa83fad46 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; |