Passed
Push — master ( cdc43c...71e530 )
by Morris
14:50 queued 05:24
created
settings/Mailer/NewUserMailHelper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -106,13 +106,13 @@  discard block
 block discarded – undo
106 106
 		if ($generatePasswordResetToken) {
107 107
 			$token = $this->secureRandom->generate(
108 108
 				21,
109
-				ISecureRandom::CHAR_DIGITS .
110
-				ISecureRandom::CHAR_LOWER .
109
+				ISecureRandom::CHAR_DIGITS.
110
+				ISecureRandom::CHAR_LOWER.
111 111
 				ISecureRandom::CHAR_UPPER
112 112
 			);
113
-			$tokenValue = $this->timeFactory->getTime() . ':' . $token;
113
+			$tokenValue = $this->timeFactory->getTime().':'.$token;
114 114
 			$mailAddress = (null !== $user->getEMailAddress()) ? $user->getEMailAddress() : '';
115
-			$encryptedValue = $this->crypto->encrypt($tokenValue, $mailAddress . $this->config->getSystemValue('secret'));
115
+			$encryptedValue = $this->crypto->encrypt($tokenValue, $mailAddress.$this->config->getSystemValue('secret'));
116 116
 			$this->config->setUserValue($user->getUID(), 'core', 'lostpassword', $encryptedValue);
117 117
 			$link = $this->urlGenerator->linkToRouteAbsolute('core.lost.resetform', ['userId' => $user->getUID(), 'token' => $token]);
118 118
 		} else {
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
 			$emailTemplate->addHeading($l10n->t('Welcome aboard %s', [$displayName]));
137 137
 		}
138 138
 		$emailTemplate->addBodyText($l10n->t('Welcome to your %s account, you can add, protect, and share your data.', [$this->themingDefaults->getName()]));
139
-		if($user->getBackendClassName() !== 'LDAP') {
139
+		if ($user->getBackendClassName() !== 'LDAP') {
140 140
 			$emailTemplate->addBodyText($l10n->t('Your username is: %s', [$userId]));
141 141
 		}
142 142
 		if ($generatePasswordResetToken) {
Please login to merge, or discard this patch.