Use ++$i over $i++

This slightly improves performance.
This commit is contained in:
jrenslin committed 2021-04-11 21:20:44 +02:00
1 parent 36bdb36986
commit 919ffdb1b5
1 file changed
+3 -3
+3 -3
View File
@@ -92,11 +92,11 @@ public static function preventBruteForce(string $tool_name, string $username):bo
}
// Increase counters and update timers
$loginLog['common']['count']++;
++$loginLog['common']['count'];
$loginLog['common']['time'] = \time();
$loginLog['usr'][$hash_user]['count']++;
++$loginLog['usr'][$hash_user]['count'];
$loginLog['usr'][$hash_user]['time'] = \time();
$loginLog['ip'][$hash_ip]['count']++;
++$loginLog['ip'][$hash_ip]['count'];
$loginLog['ip'][$hash_ip]['time'] = \time();
// Update the log file