@@ -244,27 +244,27 @@ public function init()
244244 $ this ->logger = new Psr3Yii2Logger ();
245245 }
246246
247- $ this ->subjectForAbandonedUsers = $ this -> subjectForAbandonedUsers ?? self ::SUBJ_ABANDONED_USER_ACCOUNTS ;
248- $ this ->subjectForExtGroupSyncErrors = $ this -> subjectForExtGroupSyncErrors ?? self ::SUBJ_EXT_GROUP_SYNC_ERRORS ;
249- $ this ->subjectForGetBackupCodes = $ this -> subjectForGetBackupCodes ?? self ::SUBJ_GET_BACKUP_CODES ;
250- $ this ->subjectForInvite = $ this -> subjectForInvite ?? self ::SUBJ_INVITE ;
251- $ this ->subjectForLostSecurityKey = $ this -> subjectForLostSecurityKey ?? self ::SUBJ_LOST_SECURITY_KEY ;
252- $ this ->subjectForMethodPurged = $ this -> subjectForMethodPurged ?? self ::SUBJ_METHOD_PURGED ;
253- $ this ->subjectForMethodReminder = $ this -> subjectForMethodReminder ?? self ::SUBJ_METHOD_REMINDER ;
254- $ this ->subjectForMethodVerify = $ this -> subjectForMethodVerify ?? self ::SUBJ_METHOD_VERIFY ;
255- $ this ->subjectForMfaDisabled = $ this -> subjectForMfaDisabled ?? self ::SUBJ_MFA_DISABLED ;
256- $ this ->subjectForMfaEnabled = $ this -> subjectForMfaEnabled ?? self ::SUBJ_MFA_ENABLED ;
257- $ this ->subjectForMfaOptionAdded = $ this -> subjectForMfaOptionAdded ?? self ::SUBJ_MFA_OPTION_ADDED ;
258- $ this ->subjectForMfaOptionRemoved = $ this -> subjectForMfaOptionRemoved ?? self ::SUBJ_MFA_OPTION_REMOVED ;
259- $ this ->subjectForMfaRateLimit = $ this -> subjectForMfaRateLimit ?? self ::SUBJ_MFA_RATE_LIMIT ;
260- $ this ->subjectForMfaRecovery = $ this -> subjectForMfaRecovery ?? self ::SUBJ_MFA_RECOVERY ;
261- $ this ->subjectForMfaRecoveryHelp = $ this -> subjectForMfaRecoveryHelp ?? self ::SUBJ_MFA_RECOVERY_HELP ;
262- $ this ->subjectForPasswordChanged = $ this -> subjectForPasswordChanged ?? self ::SUBJ_PASSWORD_CHANGED ;
263- $ this ->subjectForPasswordExpired = $ this -> subjectForPasswordExpired ?? self ::SUBJ_PASSWORD_EXPIRED ;
264- $ this ->subjectForPasswordExpiring = $ this -> subjectForPasswordExpiring ?? self ::SUBJ_PASSWORD_EXPIRING ;
265- $ this ->subjectForPasswordPwned = $ this -> subjectForPasswordPwned ?? self ::SUBJ_PASSWORD_PWNED ;
266- $ this ->subjectForRefreshBackupCodes = $ this -> subjectForRefreshBackupCodes ?? self ::SUBJ_REFRESH_BACKUP_CODES ;
267- $ this ->subjectForWelcome = $ this -> subjectForWelcome ?? self ::SUBJ_WELCOME ;
247+ $ this ->subjectForAbandonedUsers ??= self ::SUBJ_ABANDONED_USER_ACCOUNTS ;
248+ $ this ->subjectForExtGroupSyncErrors ??= self ::SUBJ_EXT_GROUP_SYNC_ERRORS ;
249+ $ this ->subjectForGetBackupCodes ??= self ::SUBJ_GET_BACKUP_CODES ;
250+ $ this ->subjectForInvite ??= self ::SUBJ_INVITE ;
251+ $ this ->subjectForLostSecurityKey ??= self ::SUBJ_LOST_SECURITY_KEY ;
252+ $ this ->subjectForMethodPurged ??= self ::SUBJ_METHOD_PURGED ;
253+ $ this ->subjectForMethodReminder ??= self ::SUBJ_METHOD_REMINDER ;
254+ $ this ->subjectForMethodVerify ??= self ::SUBJ_METHOD_VERIFY ;
255+ $ this ->subjectForMfaDisabled ??= self ::SUBJ_MFA_DISABLED ;
256+ $ this ->subjectForMfaEnabled ??= self ::SUBJ_MFA_ENABLED ;
257+ $ this ->subjectForMfaOptionAdded ??= self ::SUBJ_MFA_OPTION_ADDED ;
258+ $ this ->subjectForMfaOptionRemoved ??= self ::SUBJ_MFA_OPTION_REMOVED ;
259+ $ this ->subjectForMfaRateLimit ??= self ::SUBJ_MFA_RATE_LIMIT ;
260+ $ this ->subjectForMfaRecovery ??= self ::SUBJ_MFA_RECOVERY ;
261+ $ this ->subjectForMfaRecoveryHelp ??= self ::SUBJ_MFA_RECOVERY_HELP ;
262+ $ this ->subjectForPasswordChanged ??= self ::SUBJ_PASSWORD_CHANGED ;
263+ $ this ->subjectForPasswordExpired ??= self ::SUBJ_PASSWORD_EXPIRED ;
264+ $ this ->subjectForPasswordExpiring ??= self ::SUBJ_PASSWORD_EXPIRING ;
265+ $ this ->subjectForPasswordPwned ??= self ::SUBJ_PASSWORD_PWNED ;
266+ $ this ->subjectForRefreshBackupCodes ??= self ::SUBJ_REFRESH_BACKUP_CODES ;
267+ $ this ->subjectForWelcome ??= self ::SUBJ_WELCOME ;
268268
269269 $ this ->subjects = [
270270 EmailLog::MESSAGE_TYPE_ABANDONED_USERS => $ this ->subjectForAbandonedUsers ,
@@ -290,7 +290,7 @@ public function init()
290290 EmailLog::MESSAGE_TYPE_WELCOME => $ this ->subjectForWelcome ,
291291 ];
292292
293- $ this ->hrNotificationsEmail = $ this -> hrNotificationsEmail ?? '' ;
293+ $ this ->hrNotificationsEmail ??= '' ;
294294
295295 $ this ->assertConfigIsValid ();
296296
@@ -688,8 +688,8 @@ public function sendMethodReminderEmails()
688688 $ methods = Method::findAll (['verified ' => 0 ]);
689689 foreach ($ methods as $ method ) {
690690 $ user = $ method ->user ;
691- if (!MySqlDateTime::dateIsRecent ($ method ->created , 3 ) &&
692- !$ this ->hasUserReceivedMessageRecently ($ user ->id , EmailLog::MESSAGE_TYPE_METHOD_REMINDER )
691+ if (!MySqlDateTime::dateIsRecent ($ method ->created , 3 )
692+ && !$ this ->hasUserReceivedMessageRecently ($ user ->id , EmailLog::MESSAGE_TYPE_METHOD_REMINDER )
693693 ) {
694694 $ this ->sendMessageTo (
695695 EmailLog::MESSAGE_TYPE_METHOD_REMINDER ,
@@ -724,7 +724,7 @@ public function sendPasswordExpiringEmails()
724724 $ users = User::getUsersForEmail ('password-expiring ' , $ this ->emailRepeatDelayDays );
725725
726726 $ this ->logger ->info (json_encode (array_merge ($ logData , [
727- 'users ' => count ($ users )
727+ 'users ' => count ($ users ),
728728 ])));
729729
730730 $ numEmailsSent = 0 ;
@@ -765,7 +765,7 @@ public function sendPasswordExpiredEmails()
765765 $ users = User::getUsersForEmail ('password-expired ' , $ this ->emailRepeatDelayDays );
766766
767767 $ this ->logger ->info (json_encode (array_merge ($ logData , [
768- 'users ' => count ($ users )
768+ 'users ' => count ($ users ),
769769 ])));
770770
771771 $ numEmailsSent = 0 ;
0 commit comments