fix(php-cs): indentation / elseif, maybe braces?

Signed-off-by: Samuel <faust64@gmail.com>
This commit is contained in:
Samuel 2021-02-05 12:16:01 +01:00
parent e41afea739
commit 2c59e59023
1 changed files with 18 additions and 13 deletions

View File

@ -126,12 +126,14 @@ class Notifications {
} else { } else {
\OC::$server->getLogger()->info( \OC::$server->getLogger()->info(
"failed sharing $name with $shareWith", "failed sharing $name with $shareWith",
[ 'app' => 'federatedfilesharing' ]); ['app' => 'federatedfilesharing']
);
} }
} else { } else {
\OC::$server->getLogger()->info( \OC::$server->getLogger()->info(
"could not share $name, invalid contact $shareWith", "could not share $name, invalid contact $shareWith",
[ 'app' => 'federatedfilesharing' ]); ['app' => 'federatedfilesharing']
);
} }
return false; return false;
@ -182,18 +184,21 @@ class Notifications {
$status['ocs']['data']['token'], $status['ocs']['data']['token'],
$status['ocs']['data']['remoteId'] $status['ocs']['data']['remoteId']
]; ];
} else if (! $validToken) { } elseif (!$validToken) {
\OC::$server->getLogger()->info( \OC::$server->getLogger()->info(
"invalid or missing token requesting re-share for $filename to $remote", "invalid or missing token requesting re-share for $filename to $remote",
[ 'app' => 'federatedfilesharing' ]); ['app' => 'federatedfilesharing']
} else if (! $validRemoteId) { );
\OC::$server->getLogger()->info( } elseif (!$validRemoteId) {
"missing remote id requesting re-share for $filename to $remote", \OC::$server->getLogger()->info(
[ 'app' => 'federatedfilesharing' ]); "missing remote id requesting re-share for $filename to $remote",
['app' => 'federatedfilesharing']
);
} else { } else {
\OC::$server->getLogger()->info( \OC::$server->getLogger()->info(
"failed requesting re-share for $filename to $remote", "failed requesting re-share for $filename to $remote",
[ 'app' => 'federatedfilesharing' ]); ['app' => 'federatedfilesharing']
);
} }
return false; return false;