From 0f4033a528b28c821e9737f3b5d932101a41bb17 Mon Sep 17 00:00:00 2001 From: Binyamin Yawitz Date: Tue, 30 May 2023 20:29:41 -0400 Subject: [PATCH] [Correct] Formatting & linting --- src/Utopia/Messaging/Adapters/SMS/Clickatell.php | 4 ++-- src/Utopia/Messaging/Adapters/SMS/Infobip.php | 8 ++++---- src/Utopia/Messaging/Adapters/SMS/Plivo.php | 10 +++++----- src/Utopia/Messaging/Adapters/SMS/Seven.php | 4 ++-- src/Utopia/Messaging/Adapters/SMS/Sinch.php | 8 ++++---- 5 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/Utopia/Messaging/Adapters/SMS/Clickatell.php b/src/Utopia/Messaging/Adapters/SMS/Clickatell.php index c454137b..6b3ee1ee 100644 --- a/src/Utopia/Messaging/Adapters/SMS/Clickatell.php +++ b/src/Utopia/Messaging/Adapters/SMS/Clickatell.php @@ -13,8 +13,8 @@ class Clickatell extends SMSAdapter * @param string $apiKey Clickatell API Key */ public function __construct( - private string $apiKey, - ) { + private string $apiKey, + ) { } public function getName(): string diff --git a/src/Utopia/Messaging/Adapters/SMS/Infobip.php b/src/Utopia/Messaging/Adapters/SMS/Infobip.php index 68e8f03a..9d1a584b 100644 --- a/src/Utopia/Messaging/Adapters/SMS/Infobip.php +++ b/src/Utopia/Messaging/Adapters/SMS/Infobip.php @@ -11,12 +11,12 @@ class Infobip extends SMSAdapter { /** * @param string $apiBaseUrl Infobip API Base Url - * @param string $apiKey Infobip API Key + * @param string $apiKey Infobip API Key */ public function __construct( - private string $apiBaseUrl, - private string $apiKey - ) { + private string $apiBaseUrl, + private string $apiKey + ) { } public function getName(): string diff --git a/src/Utopia/Messaging/Adapters/SMS/Plivo.php b/src/Utopia/Messaging/Adapters/SMS/Plivo.php index 009dafd6..4f923fdf 100644 --- a/src/Utopia/Messaging/Adapters/SMS/Plivo.php +++ b/src/Utopia/Messaging/Adapters/SMS/Plivo.php @@ -10,13 +10,13 @@ class Plivo extends SMSAdapter { /** - * @param string $authId Plivo Auth ID + * @param string $authId Plivo Auth ID * @param string $authToken Plivo Auth Token */ public function __construct( - private string $authId, - private string $authToken - ) { + private string $authId, + private string $authToken + ) { } public function getName(): string @@ -44,7 +44,7 @@ protected function process(SMS $message): string ], body: \http_build_query([ 'text' => $message->getContent(), - 'src' => $message->getFrom(), + 'src' => $message->getFrom() ?? 'Plivo', 'dst' => \implode('<', $message->getTo()), ]), ); diff --git a/src/Utopia/Messaging/Adapters/SMS/Seven.php b/src/Utopia/Messaging/Adapters/SMS/Seven.php index bdde00a4..383bdf94 100644 --- a/src/Utopia/Messaging/Adapters/SMS/Seven.php +++ b/src/Utopia/Messaging/Adapters/SMS/Seven.php @@ -13,8 +13,8 @@ class Seven extends SMSAdapter * @param string $apiKey Seven API token */ public function __construct( - private string $apiKey - ) { + private string $apiKey + ) { } public function getName(): string diff --git a/src/Utopia/Messaging/Adapters/SMS/Sinch.php b/src/Utopia/Messaging/Adapters/SMS/Sinch.php index 65f769eb..ac0dc0b3 100644 --- a/src/Utopia/Messaging/Adapters/SMS/Sinch.php +++ b/src/Utopia/Messaging/Adapters/SMS/Sinch.php @@ -11,12 +11,12 @@ class Sinch extends SMSAdapter { /** * @param string $servicePlanId Sinch Service plan ID - * @param string $apiToken Sinch API token + * @param string $apiToken Sinch API token */ public function __construct( - private string $servicePlanId, - private string $apiToken - ) { + private string $servicePlanId, + private string $apiToken + ) { } public function getName(): string