Passed
Push — master ( 28d823...cf1af5 )
by Roeland
41:46 queued 30:13
created
lib/private/Security/Crypto.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 		}
75 75
 
76 76
 		// Append an "a" behind the password and hash it to prevent reusing the same password as for encryption
77
-		$password = hash('sha512', $password . 'a');
77
+		$password = hash('sha512', $password.'a');
78 78
 
79 79
 		$hash = new Hash('sha512');
80 80
 		$hash->setKey($password);
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
 		$this->cipher->setPassword($encryptionKey);
144 144
 		$this->cipher->setIV($iv);
145 145
 
146
-		if (!hash_equals($this->calculateHMAC($parts[0] . $parts[1], $hmacKey), $hmac)) {
146
+		if (!hash_equals($this->calculateHMAC($parts[0].$parts[1], $hmacKey), $hmac)) {
147 147
 			throw new \Exception('HMAC does not match.');
148 148
 		}
149 149
 
Please login to merge, or discard this patch.