mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Code cleanup
This commit is contained in:
@@ -103,17 +103,12 @@ interface UserRepositoryInterface
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
*
|
||||
* @deprecated
|
||||
* @return User
|
||||
*/
|
||||
public function find(int $userId): User;
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
* @return User|null
|
||||
*/
|
||||
public function findNull(int $userId): ?User;
|
||||
|
||||
/**
|
||||
* @param string $email
|
||||
*
|
||||
@@ -121,6 +116,13 @@ interface UserRepositoryInterface
|
||||
*/
|
||||
public function findByEmail(string $email): ?User;
|
||||
|
||||
/**
|
||||
* @param int $userId
|
||||
*
|
||||
* @return User|null
|
||||
*/
|
||||
public function findNull(int $userId): ?User;
|
||||
|
||||
/**
|
||||
* Returns the first user in the DB. Generally only works when there is just one.
|
||||
*
|
||||
|
Reference in New Issue
Block a user