Completed
Push — master ( 1df8ee...ec3914 )
by smiley
01:50
created
src/Crypto/BoxKeypair.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,12 +12,12 @@  discard block
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\Traits\Crypto;
14 14
 
15
-class BoxKeypair extends CryptoKeypair{
15
+class BoxKeypair extends CryptoKeypair {
16 16
 
17 17
 	/** @inheritdoc */
18 18
 	public function create(string &$seed_bin = null):CryptoKeyInterface{
19 19
 
20
-		if($seed_bin !== null && strlen($seed_bin) !== SODIUM_CRYPTO_BOX_SEEDBYTES){
20
+		if ($seed_bin !== null && strlen($seed_bin) !== SODIUM_CRYPTO_BOX_SEEDBYTES) {
21 21
 			throw new CryptoException('invalid seed length');
22 22
 		}
23 23
 
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
 		sodium_memzero($keypair);
33 33
 
34
-		if($seed_bin !== null){
34
+		if ($seed_bin !== null) {
35 35
 			sodium_memzero($seed_bin);
36 36
 		}
37 37
 
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 	 */
47 47
 	public function createFromSecret(string &$secret_bin):CryptoKeyInterface{
48 48
 
49
-		if(strlen($secret_bin) !== SODIUM_CRYPTO_BOX_SECRETKEYBYTES){
49
+		if (strlen($secret_bin) !== SODIUM_CRYPTO_BOX_SECRETKEYBYTES) {
50 50
 			throw new CryptoException('invalid secret key length');
51 51
 		}
52 52
 
Please login to merge, or discard this patch.
src/Crypto/SignedMessage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
 
13 13
 namespace chillerlan\Traits\Crypto;
14 14
 
15
-class SignedMessage extends CryptoBox{
15
+class SignedMessage extends CryptoBox {
16 16
 
17 17
 	/** @inheritdoc */
18 18
 	public function create(string &$message):CryptoBoxInterface{
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
 		sodium_memzero($box_bin);
35 35
 
36
-		if($this->message === false){
36
+		if ($this->message === false) {
37 37
 			throw new CryptoException('invalid box'); // @codeCoverageIgnore
38 38
 		}
39 39
 
Please login to merge, or discard this patch.