Remove inline if clauses
This commit is contained in:
4 files changed
+69
-23
No files matched your search
+3
-1
@@ -68,7 +68,9 @@ public static function preventBruteForce(string $tool_name, string $username):bo
|
||||
$logfile_common = \sys_get_temp_dir() . "/logins_{$tool_name}.json";
|
||||
|
||||
// Ensure the log files exist
|
||||
if (!\file_exists($logfile_common)) \file_put_contents($logfile_common, "[]");
|
||||
if (!\file_exists($logfile_common)) {
|
||||
\file_put_contents($logfile_common, "[]");
|
||||
}
|
||||
|
||||
// Hash entered username and IP to prevent malicious strings from
|
||||
// entering the system.
|
||||
|
||||
Reference in new issue
Block a user