From 919ffdb1b5c52113594525ee12aafcecb3389d6d Mon Sep 17 00:00:00 2001 From: Joshua Ramon Enslin Date: Sun, 11 Apr 2021 21:20:44 +0200 Subject: [PATCH] Use ++$i over $i++ This slightly improves performance. --- src/MD_STD_SEC.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/MD_STD_SEC.php b/src/MD_STD_SEC.php index 9a3d794..e124b70 100644 --- a/src/MD_STD_SEC.php +++ b/src/MD_STD_SEC.php @@ -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