diff options
| author | Greg Roach <greg@subaqua.co.uk> | 2021-02-04 14:28:18 +0000 |
|---|---|---|
| committer | Greg Roach <greg@subaqua.co.uk> | 2021-02-04 15:59:00 +0000 |
| commit | 24f2a3af38709f9bf0a739b30264240d20ba34e8 (patch) | |
| tree | 3e1418b4d3a327a1cf10708b29079eea6664d120 /app/Services/UserService.php | |
| parent | 5ee0e1c4682ba45eab113157c38012830963e411 (diff) | |
| download | webtrees-24f2a3af38709f9bf0a739b30264240d20ba34e8.tar.gz webtrees-24f2a3af38709f9bf0a739b30264240d20ba34e8.tar.bz2 webtrees-24f2a3af38709f9bf0a739b30264240d20ba34e8.zip | |
Code style
Diffstat (limited to 'app/Services/UserService.php')
| -rw-r--r-- | app/Services/UserService.php | 8 |
1 files changed, 4 insertions, 4 deletions
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) |
