Skip to content

Commit df13005

Browse files
committed
Clarified Return statements
1 parent 33a07c9 commit df13005

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/Authentication/Authenticators/HMAC_SHA256.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function login(User $user): void
195195
/**
196196
* Logs a user in based on their ID.
197197
*
198-
* @param int|string $userId
198+
* @param int|string $userId User ID
199199
*
200200
* @throws AuthenticationException
201201
*/
@@ -233,7 +233,7 @@ public function getUser(): ?User
233233
/**
234234
* Returns the Full Authorization token from the Authorization header
235235
*
236-
* @return ?string
236+
* @return ?string Trimmed Authorization Token from Header
237237
*/
238238
public function getFullAuthToken(): ?string
239239
{
@@ -272,7 +272,7 @@ public function getHMACAuthTokens(?string $fullToken = null): ?array
272272
/**
273273
* Retrieve the key from the Auth token
274274
*
275-
* @return ?string
275+
* @return ?string HMAC token key
276276
*/
277277
public function getAuthKeyFromToken(): ?string
278278
{
@@ -284,7 +284,7 @@ public function getAuthKeyFromToken(): ?string
284284
/**
285285
* Retrieve the HMAC Hash from the Auth token
286286
*
287-
* @return ?string
287+
* @return ?string HMAC signature
288288
*/
289289
public function getHMACHashFromToken(): ?string
290290
{

src/Models/UserIdentityModel.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ public function getAllAccessTokens(User $user): array
218218
/**
219219
* Find and Retrieve the HMAC AccessToken based on Token alone
220220
*
221-
* @return ?AccessToken
221+
* @return ?AccessToken Full HMAC Access Token object
222222
*/
223223
public function getHmacTokenByKey(string $key): ?AccessToken
224224
{
@@ -267,7 +267,7 @@ public function generateHmacToken(User $user, string $name, array $scopes = ['*'
267267
* @param User $user User Object
268268
* @param string $key HMAC Key String
269269
*
270-
* @return ?AccessToken
270+
* @return ?AccessToken Full HMAC Access Token
271271
*/
272272
public function getHmacToken(User $user, string $key): ?AccessToken
273273
{
@@ -286,7 +286,7 @@ public function getHmacToken(User $user, string $key): ?AccessToken
286286
* @param int|string $id
287287
* @param User $user User Object
288288
*
289-
* @return ?AccessToken
289+
* @return ?AccessToken Full HMAC Access Token
290290
*/
291291
public function getHmacTokenById($id, User $user): ?AccessToken
292292
{

0 commit comments

Comments
 (0)