@@ -169,7 +169,7 @@ |
||
169 | 169 | $size = \count($nonces); |
170 | 170 | |
171 | 171 | //try to decrypt starting from last stored nonce |
172 | - for ($i = $size -1; $i > -1; $i--) { |
|
172 | + for ($i = $size - 1; $i > -1; $i--) { |
|
173 | 173 | //for successful decryption return true |
174 | 174 | if (($tmpPlainText = \sodium_crypto_aead_xchacha20poly1305_ietf_decrypt($encryptedToken, '', $nonces[$i], $key))) { |
175 | 175 | //plainText will remain string |
@@ -122,7 +122,7 @@ |
||
122 | 122 | //current time |
123 | 123 | $time = \time(); |
124 | 124 | |
125 | - for ($i = $size -1; $i > -1; $i--) { |
|
125 | + for ($i = $size - 1; $i > -1; $i--) { |
|
126 | 126 | //get token from storage |
127 | 127 | //if token in storage doesn't match user token continue |
128 | 128 | if (($tmpToken = \substr($tokens[$i], 0, $chars)) !== $token) { |