@@ -27,9 +27,9 @@ discard block |
||
| 27 | 27 | public const SCHEMA = [ |
| 28 | 28 | 'name' => 'Voipbuster', |
| 29 | 29 | 'fields' => [ |
| 30 | - ['field' => 'api_user', 'prompt' => 'Please enter your Voipbuster API username:'], |
|
| 31 | - ['field' => 'api_password', 'prompt' => 'Please enter your Voipbuster API password:'], |
|
| 32 | - ['field' => 'did', 'prompt' => 'Please enter your Voipbuster DID:'], |
|
| 30 | + [ 'field' => 'api_user', 'prompt' => 'Please enter your Voipbuster API username:' ], |
|
| 31 | + [ 'field' => 'api_password', 'prompt' => 'Please enter your Voipbuster API password:' ], |
|
| 32 | + [ 'field' => 'did', 'prompt' => 'Please enter your Voipbuster DID:' ], |
|
| 33 | 33 | ], |
| 34 | 34 | ]; |
| 35 | 35 | private IClient $client; |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $this->client = $clientService->newClient(); |
| 41 | 41 | } |
| 42 | 42 | |
| 43 | - #[\Override] |
|
| 43 | + #[\Override ] |
|
| 44 | 44 | public function send(string $identifier, string $message) { |
| 45 | 45 | $user = $this->getApiUser(); |
| 46 | 46 | $password = $this->getApiPassword(); |
@@ -26,8 +26,8 @@ discard block |
||
| 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 |
||
| 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(); |
@@ -13,7 +13,7 @@ |
||
| 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 |
@@ -20,27 +20,27 @@ |
||
| 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 | } |
@@ -13,12 +13,12 @@ |
||
| 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 | } |
@@ -13,12 +13,12 @@ |
||
| 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 | } |
@@ -13,12 +13,12 @@ |
||
| 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 | } |
@@ -13,12 +13,12 @@ |
||
| 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 | } |
@@ -82,7 +82,7 @@ |
||
| 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, |