Remove inline if clauses

This commit is contained in:
2021-02-06 20:08:37 +01:00
parent 217e1fc86b
commit 8aa9d94acf
4 changed files with 69 additions and 23 deletions

View File

@ -68,7 +68,9 @@ final class MD_STD_SEC {
$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.