Use ++$i over $i++
This slightly improves performance.
This commit is contained in:
parent
36bdb36986
commit
919ffdb1b5
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user