From 7675282f454d90e171dbe0136402ae45602cf9b7 Mon Sep 17 00:00:00 2001 From: Mark Magyar <14284867+xHeaven@users.noreply.github.com> Date: Sat, 27 May 2023 20:41:37 +0200 Subject: [PATCH] put scalar types to the right --- lib/TwoFactorAuth.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/TwoFactorAuth.php b/lib/TwoFactorAuth.php index 8098c85..eccd258 100644 --- a/lib/TwoFactorAuth.php +++ b/lib/TwoFactorAuth.php @@ -168,7 +168,7 @@ class TwoFactorAuth public function getQrCodeProvider(): IQRCodeProvider { // Set default QR Code provider if none was specified - if (null === $this->qrcodeprovider) { + if ($this->qrcodeprovider === null) { return $this->qrcodeprovider = new QRServerProvider(); } return $this->qrcodeprovider; @@ -179,7 +179,7 @@ class TwoFactorAuth */ public function getRngProvider(): IRNGProvider { - if (null !== $this->rngprovider) { + if ($this->rngprovider !== null) { return $this->rngprovider; } if (function_exists('random_bytes')) { @@ -200,7 +200,7 @@ class TwoFactorAuth public function getTimeProvider(): ITimeProvider { // Set default time provider if none was specified - if (null === $this->timeprovider) { + if ($this->timeprovider === null) { return $this->timeprovider = new LocalMachineTimeProvider(); } return $this->timeprovider;