Code reordering and reformatting. I should really start employing style CI.

This commit is contained in:
James Cole
2021-09-18 10:26:12 +02:00
parent 9b9d52e99f
commit 4003cea759
344 changed files with 2776 additions and 2605 deletions

View File

@@ -169,16 +169,6 @@ class UserRepository implements UserRepositoryInterface
return true;
}
/**
* @param string $email
*
* @return User|null
*/
public function findByEmail(string $email): ?User
{
return User::where('email', $email)->first();
}
/**
* @param int $userId
*
@@ -189,6 +179,16 @@ class UserRepository implements UserRepositoryInterface
return User::find($userId);
}
/**
* @param string $email
*
* @return User|null
*/
public function findByEmail(string $email): ?User
{
return User::where('email', $email)->first();
}
/**
* Returns the first user in the DB. Generally only works when there is just one.
*

View File

@@ -102,13 +102,6 @@ interface UserRepositoryInterface
*/
public function destroy(User $user): bool;
/**
* @param string $email
*
* @return User|null
*/
public function findByEmail(string $email): ?User;
/**
* @param int $userId
*
@@ -116,6 +109,13 @@ interface UserRepositoryInterface
*/
public function find(int $userId): ?User;
/**
* @param string $email
*
* @return User|null
*/
public function findByEmail(string $email): ?User;
/**
* Returns the first user in the DB. Generally only works when there is just one.
*