@@ -43,7 +43,7 @@ |
||
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 { |
@@ -51,7 +51,7 @@ |
||
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(); |
@@ -55,7 +55,7 @@ |
||
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(); |
@@ -56,7 +56,7 @@ |
||
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', [ |
@@ -49,20 +49,20 @@ |
||
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) { |
@@ -24,7 +24,7 @@ |
||
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 |
@@ -60,13 +60,13 @@ |
||
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); |
@@ -22,7 +22,7 @@ discard block |
||
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 |
||
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 | } |
@@ -22,11 +22,11 @@ |
||
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, |