Passed
Push — b2.0.0 ( 2f7a91 )
by Sebastian
08:01
created
src/Provider/EncryptionTokenProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -169,7 +169,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.
src/Provider/SynchronizerTokenProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.