Use ++$i over $i++

This slightly improves performance.
This commit is contained in:
Joshua Ramon Enslin 2021-04-11 21:20:44 +02:00
parent 36bdb36986
commit 919ffdb1b5
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -92,11 +92,11 @@ final class MD_STD_SEC {
}
// 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