@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | |
17 | 17 | use const SODIUM_CRYPTO_BOX_NONCEBYTES, SODIUM_CRYPTO_BOX_SECRETKEYBYTES; |
18 | 18 | |
19 | -class SecretBox extends CryptoBoxAbstract{ |
|
19 | +class SecretBox extends CryptoBoxAbstract { |
|
20 | 20 | |
21 | 21 | /** |
22 | 22 | * @param string $message |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | sodium_memzero($message); |
35 | 35 | |
36 | - if($nonce_bin !== null){ |
|
36 | + if ($nonce_bin !== null) { |
|
37 | 37 | sodium_memzero($nonce_bin); |
38 | 38 | } |
39 | 39 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | $this->message = sodium_crypto_secretbox_open($box_bin, $nonce_bin, $this->keypair->secret); |
54 | 54 | |
55 | - if($this->message !== false){ |
|
55 | + if ($this->message !== false) { |
|
56 | 56 | return $this; |
57 | 57 | } |
58 | 58 |