Passed
Pull Request — master (#691)
by Vitor
04:32
created
lib/Provider/Channel/SMS/Provider/Drivers/Sms77Io.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 		);
44 44
 	}
45 45
 
46
-	#[\Override]
46
+	#[\Override ]
47 47
 	public function send(string $identifier, string $message) {
48 48
 		$apiKey = $this->getApiKey();
49 49
 		try {
Please login to merge, or discard this patch.
lib/Provider/Channel/SMS/Provider/Drivers/ClickatellPortal.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
 		);
52 52
 	}
53 53
 
54
-	#[\Override]
54
+	#[\Override ]
55 55
 	public function send(string $identifier, string $message) {
56 56
 		try {
57 57
 			$from = $this->getFrom();
Please login to merge, or discard this patch.
lib/Provider/Channel/SMS/Provider/Drivers/EcallSMS.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
 		);
56 56
 	}
57 57
 
58
-	#[\Override]
58
+	#[\Override ]
59 59
 	public function send(string $identifier, string $message) {
60 60
 		$user = $this->getUsername();
61 61
 		$password = $this->getPassword();
Please login to merge, or discard this patch.
lib/Provider/Channel/SMS/Provider/Drivers/ClickatellCentral.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
 		);
57 57
 	}
58 58
 
59
-	#[\Override]
59
+	#[\Override ]
60 60
 	public function send(string $identifier, string $message) {
61 61
 		try {
62 62
 			$response = $this->client->get(vsprintf('https://api.clickatell.com/http/sendmsg?user=%s&password=%s&api_id=%u&to=%s&text=%s', [
Please login to merge, or discard this patch.
lib/Provider/Channel/SMS/Provider/Drivers/WebSms.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,20 +49,20 @@
 block discarded – undo
49 49
 		);
50 50
 	}
51 51
 
52
-	#[\Override]
52
+	#[\Override ]
53 53
 	public function send(string $identifier, string $message) {
54 54
 		$user = $this->getUser();
55 55
 		$password = $this->getPassword();
56 56
 		try {
57 57
 			$this->client->post('https://api.websms.com/rest/smsmessaging/text', [
58 58
 				'headers' => [
59
-					'Authorization' => 'Basic ' . base64_encode("$user:$password"),
59
+					'Authorization' => 'Basic '.base64_encode("$user:$password"),
60 60
 					'Content-Type' => 'application/json',
61 61
 				],
62 62
 				'json' => [
63 63
 					'messageContent' => $message,
64 64
 					'test' => false,
65
-					'recipientAddressList' => [$identifier],
65
+					'recipientAddressList' => [ $identifier ],
66 66
 				],
67 67
 			]);
68 68
 		} catch (Exception $ex) {
Please login to merge, or discard this patch.
lib/Provider/Gateway/IGateway.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	 *
25 25
 	 * @throws MessageTransmissionException
26 26
 	 */
27
-	public function send(string $identifier, string $message, array $extra = []): void;
27
+	public function send(string $identifier, string $message, array $extra = [ ]): void;
28 28
 
29 29
 	public function isComplete(?Settings $settings = null): bool;
30 30
 
Please login to merge, or discard this patch.
lib/Service/SetupService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,13 +60,13 @@
 block discarded – undo
60 60
 		$gateway = $this->gatewayFactory->get($gatewayName);
61 61
 		try {
62 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]),
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.
lib/Command/Status.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 		parent::__construct('twofactorauth:gateway:status');
23 23
 	}
24 24
 
25
-	#[\Override]
25
+	#[\Override ]
26 26
 	protected function execute(InputInterface $input, OutputInterface $output) {
27 27
 		$fqcn = $this->gatewayFactory->getFqcnList();
28 28
 		foreach ($fqcn as $fqcn) {
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 			$gateway = $this->gatewayFactory->get($fqcn);
31 31
 			$isConfigured = $gateway->isComplete();
32 32
 			$settings = $gateway->getSettings();
33
-			$output->writeln($settings->name . ': ' . ($isConfigured ? 'configured' : 'not configured'));
33
+			$output->writeln($settings->name.': '.($isConfigured ? 'configured' : 'not configured'));
34 34
 		}
35 35
 		return 0;
36 36
 	}
Please login to merge, or discard this patch.
lib/Provider/Settings.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
 		 *
23 23
 		 * @var FieldDefinition[]
24 24
 		 */
25
-		public array $fields = [],
25
+		public array $fields = [ ],
26 26
 	) {
27 27
 	}
28 28
 
29
-	#[\Override]
29
+	#[\Override ]
30 30
 	public function jsonSerialize(): mixed {
31 31
 		return [
32 32
 			'name' => $this->name,
Please login to merge, or discard this patch.