From 584e4ef41d272cf29ec5a3387be0660b53fb10b2 Mon Sep 17 00:00:00 2001 From: David Goodwin Date: Thu, 13 May 2021 12:56:38 +0100 Subject: [PATCH] type hinting changes --- model/Login.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/model/Login.php b/model/Login.php index 60578da2..d63e39dc 100644 --- a/model/Login.php +++ b/model/Login.php @@ -94,18 +94,16 @@ class Login /** * returns user's domain name * @param $username - * @return mixed|null + * @return string|null * @throws Exception */ - protected function getUserDomain($username) + protected function getUserDomain(string $username) { $sql = "SELECT domain FROM {$this->table} WHERE username = :username AND active = :active"; - $active = db_get_boolean(true); - $values = [ 'username' => $username, - 'active' => $active, + 'active' => db_get_boolean(true), ]; // Fetch the domain