From 24f2a3af38709f9bf0a739b30264240d20ba34e8 Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Thu, 4 Feb 2021 14:28:18 +0000 Subject: Code style --- app/Services/UserService.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app/Services/UserService.php') diff --git a/app/Services/UserService.php b/app/Services/UserService.php index c9d1f90da5..70af99a2b1 100644 --- a/app/Services/UserService.php +++ b/app/Services/UserService.php @@ -50,7 +50,7 @@ class UserService * * @return User|null */ - public function find($user_id): ?User + public function find(?int $user_id): ?User { return Registry::cache()->array()->remember('user-' . $user_id, static function () use ($user_id): ?User { return DB::table('user') @@ -68,7 +68,7 @@ class UserService * * @return User|null */ - public function findByEmail($email): ?User + public function findByEmail(string $email): ?User { return DB::table('user') ->where('email', '=', $email) @@ -84,7 +84,7 @@ class UserService * * @return User|null */ - public function findByIdentifier($identifier): ?User + public function findByIdentifier(string $identifier): ?User { return DB::table('user') ->where('user_name', '=', $identifier) @@ -142,7 +142,7 @@ class UserService * * @return User|null */ - public function findByUserName($user_name): ?User + public function findByUserName(string $user_name): ?User { return DB::table('user') ->where('user_name', '=', $user_name) -- cgit v1.3