This commit is contained in:
James Cole
2023-12-21 05:07:26 +01:00
parent 1f7ceb6df6
commit a445bc53cd
61 changed files with 165 additions and 163 deletions

View File

@@ -151,7 +151,7 @@ class RemoteUserGuard implements Guard
return $this->user?->id;
}
public function setUser(null|Authenticatable|User $user)
public function setUser(null|Authenticatable|User $user): void
{
app('log')->debug(sprintf('Now at %s', __METHOD__));
if ($user instanceof User) {
@@ -162,7 +162,7 @@ class RemoteUserGuard implements Guard
app('log')->error(sprintf('Did not set user at %s', __METHOD__));
}
public function validate(array $credentials = [])
public function validate(array $credentials = []): void
{
app('log')->debug(sprintf('Now at %s', __METHOD__));

View File

@@ -36,7 +36,7 @@ use Illuminate\Contracts\Auth\UserProvider;
*/
class RemoteUserProvider implements UserProvider
{
public function retrieveByCredentials(array $credentials)
public function retrieveByCredentials(array $credentials): void
{
app('log')->debug(sprintf('Now at %s', __METHOD__));
@@ -70,21 +70,21 @@ class RemoteUserProvider implements UserProvider
return $user;
}
public function retrieveByToken($identifier, $token)
public function retrieveByToken($identifier, $token): void
{
app('log')->debug(sprintf('Now at %s', __METHOD__));
throw new FireflyException(sprintf('A) Did not implement %s', __METHOD__));
}
public function updateRememberToken(Authenticatable $user, $token)
public function updateRememberToken(Authenticatable $user, $token): void
{
app('log')->debug(sprintf('Now at %s', __METHOD__));
throw new FireflyException(sprintf('B) Did not implement %s', __METHOD__));
}
public function validateCredentials(Authenticatable $user, array $credentials)
public function validateCredentials(Authenticatable $user, array $credentials): void
{
app('log')->debug(sprintf('Now at %s', __METHOD__));