From c7e7ae377766af6b60d60a8f6674c03561dc4386 Mon Sep 17 00:00:00 2001 From: DariusIII Date: Wed, 9 Aug 2017 13:03:39 +0200 Subject: [PATCH] Add missed return type declarations in Users class --- nntmux/Users.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/nntmux/Users.php b/nntmux/Users.php index 1fa03b770..8c2c691fd 100755 --- a/nntmux/Users.php +++ b/nntmux/Users.php @@ -1346,7 +1346,7 @@ class Users * @return int * @throws \Exception */ - public function getApiRequests($userID) + public function getApiRequests($userID): int { // Clear old requests. $this->clearApiRequests($userID); @@ -1514,7 +1514,8 @@ class Users * @param int $userID * @return bool */ - public function isAdmin($userID) { + public function isAdmin($userID): bool + { return $this->roleCheck(self::ROLE_ADMIN, (int)$userID); } @@ -1524,7 +1525,8 @@ class Users * @param int $userId * @return bool */ - public function isModerator($userId) { + public function isModerator($userId): bool + { return $this->roleCheck(self::ROLE_MODERATOR, (int)$userId); } }