@@ -31,9 +31,9 @@ class SignatureHasher
31
31
private ?int $ maxUses ;
32
32
33
33
/**
34
- * @param array $signatureProperties properties of the User; the hash is invalidated if these properties change
35
- * @param ExpiredSignatureStorage|null $expiredSignaturesStorage if provided, secures a sequence of hashes that are expired
36
- * @param int|null $maxUses used together with $expiredSignatureStorage to allow a maximum usage of a hash
34
+ * @param array $signatureProperties Properties of the User; the hash is invalidated if these properties change
35
+ * @param ExpiredSignatureStorage|null $expiredSignaturesStorage If provided, secures a sequence of hashes that are expired
36
+ * @param int|null $maxUses Used together with $expiredSignatureStorage to allow a maximum usage of a hash
37
37
*/
38
38
public function __construct (PropertyAccessorInterface $ propertyAccessor , array $ signatureProperties , string $ secret , ExpiredSignatureStorage $ expiredSignaturesStorage = null , int $ maxUses = null )
39
39
{
@@ -47,8 +47,8 @@ public function __construct(PropertyAccessorInterface $propertyAccessor, array $
47
47
/**
48
48
* Verifies the hash using the provided user and expire time.
49
49
*
50
- * @param int $expires the expiry time as a unix timestamp
51
- * @param string $hash the plaintext hash provided by the request
50
+ * @param int $expires The expiry time as a unix timestamp
51
+ * @param string $hash The plaintext hash provided by the request
52
52
*
53
53
* @throws InvalidSignatureException If the signature does not match the provided parameters
54
54
* @throws ExpiredSignatureException If the signature is no longer valid
@@ -75,7 +75,7 @@ public function verifySignatureHash(UserInterface $user, int $expires, string $h
75
75
/**
76
76
* Computes the secure hash for the provided user and expire time.
77
77
*
78
- * @param int $expires the expiry time as a unix timestamp
78
+ * @param int $expires The expiry time as a unix timestamp
79
79
*/
80
80
public function computeSignatureHash (UserInterface $ user , int $ expires ): string
81
81
{
0 commit comments