Remove inline if clauses

This commit is contained in:
jrenslin committed 2021-02-06 20:08:37 +01:00
1 parent 217e1fc86b
commit 8aa9d94acf
4 files changed
+69 -23

No files matched your search

+3 -1
View File
@@ -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.