summaryrefslogtreecommitdiff
path: root/app/Services/UserService.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2019-03-07 18:49:27 +0000
committerGreg Roach <fisharebest@webtrees.net>2019-03-07 21:37:35 +0000
commite364afe4ae4e316fc4ebd53eccbaff2d29e419a5 (patch)
tree9e269d16bd3714e9943169fc4a31c192b065c36c /app/Services/UserService.php
parent7d99559cb9c1475576caf7ef2fe79a5aad947d30 (diff)
downloadwebtrees-e364afe4ae4e316fc4ebd53eccbaff2d29e419a5.tar.gz
webtrees-e364afe4ae4e316fc4ebd53eccbaff2d29e419a5.tar.bz2
webtrees-e364afe4ae4e316fc4ebd53eccbaff2d29e419a5.zip
Code style and testing
Diffstat (limited to 'app/Services/UserService.php')
-rw-r--r--app/Services/UserService.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Services/UserService.php b/app/Services/UserService.php
index be4278c543..3f7cdeb335 100644
--- a/app/Services/UserService.php
+++ b/app/Services/UserService.php
@@ -57,7 +57,7 @@ class UserService
*
* @return User|null
*/
- public function findByEmail($email)
+ public function findByEmail($email): ?User
{
return DB::table('user')
->where('email', '=', $email)
@@ -73,7 +73,7 @@ class UserService
*
* @return User|null
*/
- public function findByIdentifier($identifier)
+ public function findByIdentifier($identifier): ?User
{
return DB::table('user')
->where('user_name', '=', $identifier)
@@ -110,7 +110,7 @@ class UserService
*
* @return User|null
*/
- public function findByUserName($user_name)
+ public function findByUserName($user_name): ?User
{
return DB::table('user')
->where('user_name', '=', $user_name)
@@ -295,7 +295,7 @@ class UserService
*
* @return void
*/
- public function delete(User $user)
+ public function delete(User $user): void
{
// Don't delete the logs, just set the user to null.
DB::table('log')