Remove superfluous parentheses

This commit is contained in:
2021-09-17 15:52:37 +02:00
parent 80ab3216d5
commit a6ebab3e03
3 changed files with 17 additions and 16 deletions

View File

@ -8,6 +8,12 @@ declare(strict_types = 1);
* Gathers wrappers for handling basic security operations.
*/
final class MD_STD_SEC {
const BRUTE_FORCE_DELAY_DEFAULT = 2000; // 2000 microseconds = 2 milliseconds
const BRUTE_FORCE_DELAY_MULTIPLIER_COMMON = 1.08;
const BRUTE_FORCE_DELAY_MULTIPLIER_PER_USER = 1.8;
const BRUTE_FORCE_DELAY_MULTIPLIER_PER_IP = 4;
/**
* Function for retrieving the anti-csrf token or generating it if need be.
*
@ -45,11 +51,6 @@ final class MD_STD_SEC {
}
const BRUTE_FORCE_DELAY_DEFAULT = 2000; // 2000 microseconds = 2 milliseconds
const BRUTE_FORCE_DELAY_MULTIPLIER_COMMON = 1.08;
const BRUTE_FORCE_DELAY_MULTIPLIER_PER_USER = 1.8;
const BRUTE_FORCE_DELAY_MULTIPLIER_PER_IP = 4;
/**
* Prevent brute force attacks by delaying the login .
*