Skip to content

Commit

Permalink
Clarified Return statements
Browse files Browse the repository at this point in the history
  • Loading branch information
tswagger committed Aug 24, 2023
1 parent 33a07c9 commit df13005
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/Authentication/Authenticators/HMAC_SHA256.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function login(User $user): void
/**
* Logs a user in based on their ID.
*
* @param int|string $userId
* @param int|string $userId User ID
*
* @throws AuthenticationException
*/
Expand Down Expand Up @@ -233,7 +233,7 @@ public function getUser(): ?User
/**
* Returns the Full Authorization token from the Authorization header
*
* @return ?string
* @return ?string Trimmed Authorization Token from Header
*/
public function getFullAuthToken(): ?string
{
Expand Down Expand Up @@ -272,7 +272,7 @@ public function getHMACAuthTokens(?string $fullToken = null): ?array
/**
* Retrieve the key from the Auth token
*
* @return ?string
* @return ?string HMAC token key
*/
public function getAuthKeyFromToken(): ?string
{
Expand All @@ -284,7 +284,7 @@ public function getAuthKeyFromToken(): ?string
/**
* Retrieve the HMAC Hash from the Auth token
*
* @return ?string
* @return ?string HMAC signature
*/
public function getHMACHashFromToken(): ?string
{
Expand Down
6 changes: 3 additions & 3 deletions src/Models/UserIdentityModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ public function getAllAccessTokens(User $user): array
/**
* Find and Retrieve the HMAC AccessToken based on Token alone
*
* @return ?AccessToken
* @return ?AccessToken Full HMAC Access Token object
*/
public function getHmacTokenByKey(string $key): ?AccessToken
{
Expand Down Expand Up @@ -267,7 +267,7 @@ public function generateHmacToken(User $user, string $name, array $scopes = ['*'
* @param User $user User Object
* @param string $key HMAC Key String
*
* @return ?AccessToken
* @return ?AccessToken Full HMAC Access Token
*/
public function getHmacToken(User $user, string $key): ?AccessToken
{
Expand All @@ -286,7 +286,7 @@ public function getHmacToken(User $user, string $key): ?AccessToken
* @param int|string $id
* @param User $user User Object
*
* @return ?AccessToken
* @return ?AccessToken Full HMAC Access Token
*/
public function getHmacTokenById($id, User $user): ?AccessToken
{
Expand Down

0 comments on commit df13005

Please sign in to comment.