Skip to content

Commit

Permalink
Fix coding standard
Browse files Browse the repository at this point in the history
  • Loading branch information
natanfelles committed Jul 8, 2023
1 parent bb71d15 commit 23df5ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BoxSeal.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public static function encrypt(
*/
public static function decrypt(
#[SensitiveParameter] string $ciphertext,
#[SensitiveParameter] string $keyPair
#[SensitiveParameter] string $keyPair
) : false | string {
return \sodium_crypto_box_seal_open($ciphertext, $keyPair);
}
Expand Down
2 changes: 1 addition & 1 deletion src/SecretBox.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function __construct(
*/
protected function validatedLengths(
#[SensitiveParameter] string $key,
#[SensitiveParameter] string $nonce
#[SensitiveParameter] string $nonce
) : void {
$length = \mb_strlen($key, '8bit');
if ($length !== \SODIUM_CRYPTO_SECRETBOX_KEYBYTES) {
Expand Down

0 comments on commit 23df5ec

Please sign in to comment.