Passed
Push — master ( 29c3ff...12a478 )
by Vitor
05:59 queued 01:59
created
lib/Provider/Channel/SMS/Provider/Drivers/ClickSend.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 	public const SCHEMA = [
27 27
 		'name' => 'ClickSend',
28 28
 		'fields' => [
29
-			['field' => 'user', 'prompot' => 'Please enter your clicksend.com username:'],
30
-			['field' => 'apikey', 'prompot' => 'Please enter your clicksend.com api key (or subuser password):'],
29
+			[ 'field' => 'user', 'prompot' => 'Please enter your clicksend.com username:' ],
30
+			[ 'field' => 'apikey', 'prompot' => 'Please enter your clicksend.com api key (or subuser password):' ],
31 31
 		],
32 32
 	];
33 33
 	private IClient $client;
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 		$this->client = $clientService->newClient();
39 39
 	}
40 40
 
41
-	#[\Override]
41
+	#[\Override ]
42 42
 	public function send(string $identifier, string $message) {
43 43
 		$apiKey = $this->getApiKey();
44 44
 		$username = $this->getUser();
Please login to merge, or discard this patch.
lib/Provider/Channel/SMS/Provider/IProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
 use OCP\IAppConfig;
14 14
 
15 15
 interface IProvider {
16
-	public const SCHEMA = [];
16
+	public const SCHEMA = [ ];
17 17
 
18 18
 	/**
19 19
 	 * @param string $identifier
Please login to merge, or discard this patch.
lib/Provider/Channel/SMS/Provider/AProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -20,27 +20,27 @@
 block discarded – undo
20 20
 	/**
21 21
 	 * @throws MessageTransmissionException
22 22
 	 */
23
-	#[\Override]
23
+	#[\Override ]
24 24
 	abstract public function send(string $identifier, string $message);
25 25
 
26
-	#[\Override]
26
+	#[\Override ]
27 27
 	public function setAppConfig(IAppConfig $appConfig): void {
28 28
 		$this->appConfig = $appConfig;
29 29
 	}
30 30
 
31
-	#[\Override]
31
+	#[\Override ]
32 32
 	public static function idOverride(): ?string {
33 33
 		return null;
34 34
 	}
35 35
 
36
-	#[\Override]
36
+	#[\Override ]
37 37
 	public static function getProviderId(): string {
38
-		if (static::SCHEMA['id'] ?? null) {
39
-			return static::SCHEMA['id'];
38
+		if (static::SCHEMA[ 'id' ] ?? null) {
39
+			return static::SCHEMA[ 'id' ];
40 40
 		}
41 41
 		$id = self::getIdFromProviderFqcn(static::class);
42 42
 		if ($id === null) {
43
-			throw new \LogicException('Cannot derive gateway id from FQCN: ' . static::class);
43
+			throw new \LogicException('Cannot derive gateway id from FQCN: '.static::class);
44 44
 		}
45 45
 		return $id;
46 46
 	}
Please login to merge, or discard this patch.
lib/Provider/Channel/SMS/Provider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
 
14 14
 class Provider extends AProvider {
15 15
 
16
-	#[\Override]
16
+	#[\Override ]
17 17
 	public function getDisplayName(): string {
18 18
 		return $this->l10n->t('Message gateway verification');
19 19
 	}
20 20
 
21
-	#[\Override]
21
+	#[\Override ]
22 22
 	public function getDescription(): string {
23 23
 		return $this->l10n->t('Authenticate via SMS');
24 24
 	}
Please login to merge, or discard this patch.
lib/Provider/Channel/XMPP/Provider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
 
14 14
 class Provider extends AProvider {
15 15
 
16
-	#[\Override]
16
+	#[\Override ]
17 17
 	public function getDisplayName(): string {
18 18
 		return $this->l10n->t('XMPP verification');
19 19
 	}
20 20
 
21
-	#[\Override]
21
+	#[\Override ]
22 22
 	public function getDescription(): string {
23 23
 		return $this->l10n->t('Authenticate via XMPP');
24 24
 	}
Please login to merge, or discard this patch.
lib/Provider/Channel/WhatsApp/Provider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
 
14 14
 class Provider extends AProvider {
15 15
 
16
-	#[\Override]
16
+	#[\Override ]
17 17
 	public function getDisplayName(): string {
18 18
 		return $this->l10n->t('WhatsApp verification');
19 19
 	}
20 20
 
21
-	#[\Override]
21
+	#[\Override ]
22 22
 	public function getDescription(): string {
23 23
 		return $this->l10n->t('Authenticate via WhatsApp');
24 24
 	}
Please login to merge, or discard this patch.
lib/Provider/Channel/Telegram/Provider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,12 +13,12 @@
 block discarded – undo
13 13
 
14 14
 class Provider extends AProvider {
15 15
 
16
-	#[\Override]
16
+	#[\Override ]
17 17
 	public function getDisplayName(): string {
18 18
 		return $this->l10n->t('Telegram verification');
19 19
 	}
20 20
 
21
-	#[\Override]
21
+	#[\Override ]
22 22
 	public function getDescription(): string {
23 23
 		return $this->l10n->t('Authenticate via Telegram');
24 24
 	}
Please login to merge, or discard this patch.
lib/Provider/State.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
 		return $this->verificationCode;
83 83
 	}
84 84
 
85
-	#[\Override]
85
+	#[\Override ]
86 86
 	public function jsonSerialize(): mixed {
87 87
 		return [
88 88
 			'gatewayName' => $this->gatewayName,
Please login to merge, or discard this patch.
lib/Exception/MessageTransmissionException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types = 1);
3
+declare(strict_types=1);
4 4
 
5 5
 /**
6 6
  * SPDX-FileCopyrightText: 2024 Christoph Wurst <[email protected]>
Please login to merge, or discard this patch.