style(legacy): format files (#1946)

This commit is contained in:
Jonas L 2022-07-07 20:01:15 +02:00 committed by GitHub
parent eb19283d96
commit 4d393fa14e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
66 changed files with 775 additions and 565 deletions

View file

@ -5,7 +5,8 @@ class RestAuth
public static function verifyAuth($checkApiKey, $checkSession, $action)
{
// Session takes precedence over API key for now:
if ($checkSession && self::verifySession()
if (
$checkSession && self::verifySession()
|| $checkApiKey && self::verifyAPIKey($action)
) {
return true;