diff --git a/src/Appwrite/Event/Messaging.php b/src/Appwrite/Event/Messaging.php index 354418486b..62d41f8c3b 100644 --- a/src/Appwrite/Event/Messaging.php +++ b/src/Appwrite/Event/Messaging.php @@ -13,7 +13,7 @@ class Messaging extends Event protected ?array $recipients = null; protected ?string $deliveryTime = null; protected ?string $providerType = null; - + public function __construct(protected Connection $connection) { @@ -170,4 +170,4 @@ class Messaging extends Event 'providerType' => $this->providerType, ]); } -} \ No newline at end of file +} diff --git a/src/Appwrite/Platform/Workers/Messaging.php b/src/Appwrite/Platform/Workers/Messaging.php index b2b0094a88..2283770e09 100644 --- a/src/Appwrite/Platform/Workers/Messaging.php +++ b/src/Appwrite/Platform/Workers/Messaging.php @@ -77,7 +77,7 @@ class Messaging extends Action } } - + private function processMessage(Database $dbForProject, Document $message): void { @@ -228,7 +228,7 @@ class Messaging extends Action private function processInternalSMSMessage(Document $message, array $recipients): void { - if(empty(App::getEnv('_APP_SMS_PROVIDER')) || empty(App::getEnv('_APP_SMS_FROM'))) { + if (empty(App::getEnv('_APP_SMS_PROVIDER')) || empty(App::getEnv('_APP_SMS_FROM'))) { Console::info('Skipped SMS processing. No Phone configuration has been set.'); return; }