From 669bd4d718179fecf96b60b7d7b0ea6c2e82f8a2 Mon Sep 17 00:00:00 2001 From: Tobias Assmann Date: Fri, 16 Jul 2021 13:33:29 +0200 Subject: [PATCH] add spaces around operators Signed-off-by: Tobias Assmann --- lib/private/Authentication/Listeners/UserLoggedInListener.php | 2 +- lib/private/Authentication/Token/PublicKeyTokenProvider.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/Authentication/Listeners/UserLoggedInListener.php b/lib/private/Authentication/Listeners/UserLoggedInListener.php index d158545d22ceb..faf2edd54f7ec 100644 --- a/lib/private/Authentication/Listeners/UserLoggedInListener.php +++ b/lib/private/Authentication/Listeners/UserLoggedInListener.php @@ -49,7 +49,7 @@ public function handle(Event $event): void { } // prevent setting an empty pw as result of pw-less-login - if ($event->getPassword()==='') { + if ($event->getPassword() === '') { return; } diff --git a/lib/private/Authentication/Token/PublicKeyTokenProvider.php b/lib/private/Authentication/Token/PublicKeyTokenProvider.php index 1d4f470a6be01..870098b04040a 100644 --- a/lib/private/Authentication/Token/PublicKeyTokenProvider.php +++ b/lib/private/Authentication/Token/PublicKeyTokenProvider.php @@ -415,7 +415,7 @@ public function updatePasswords(string $uid, string $password) { $this->cache->clear(); // prevent setting an empty pw as result of pw-less-login - if ($password==='') { + if ($password === '') { return; }