Passed
Pull Request — master (#675)
by Vitor
04:04
created
lib/Service/SetupService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,14 +59,14 @@
 block discarded – undo
59 59
 		$verificationNumber = $this->random->generate(6, ISecureRandom::CHAR_DIGITS);
60 60
 		$gateway = $this->gatewayFactory->get($gatewayName);
61 61
 		try {
62
-			$message = match ($gateway->getSettings()['allow_markdown'] ?? false) {
63
-				true => $this->l10n->t('`%s` is your verification code.', [$verificationNumber]),
64
-				default => $this->l10n->t('%s is your verification code.', [$verificationNumber]),
62
+			$message = match ($gateway->getSettings()[ 'allow_markdown' ] ?? false) {
63
+				true => $this->l10n->t('`%s` is your verification code.', [ $verificationNumber ]),
64
+				default => $this->l10n->t('%s is your verification code.', [ $verificationNumber ]),
65 65
 			};
66 66
 			$gateway->send(
67 67
 				$identifier,
68 68
 				$message,
69
-				['code' => $verificationNumber],
69
+				[ 'code' => $verificationNumber ],
70 70
 			);
71 71
 		} catch (MessageTransmissionException $ex) {
72 72
 			throw new VerificationException($ex->getMessage(), $ex->getCode(), $ex);
Please login to merge, or discard this patch.