Passed
Push — master ( 8ec58b...3ea301 )
by smiley
02:13
created
src/SecretBox.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.