mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-27 20:10:18 +02:00
[ticket/17173] Fix code according to coding guidelines
PHPBB3-17173
This commit is contained in:
@@ -35,7 +35,8 @@ $hash = hash_file('sha384', $file_path, true);
|
|||||||
try
|
try
|
||||||
{
|
{
|
||||||
$signature = sodium_crypto_sign_detached($hash, $secret_key);
|
$signature = sodium_crypto_sign_detached($hash, $secret_key);
|
||||||
} catch (SodiumException $e)
|
}
|
||||||
|
catch (SodiumException $e)
|
||||||
{
|
{
|
||||||
$keypair = sodium_crypto_sign_keypair();
|
$keypair = sodium_crypto_sign_keypair();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user