From 512cd376d1b0b3d0ed5e63ea456f23df8c9b1abc Mon Sep 17 00:00:00 2001 From: Sumitmaithani Date: Sun, 15 Oct 2023 18:16:12 +0530 Subject: [PATCH] fixed lint error --- src/Utopia/Messaging/Adapters/Push/PushBullet.php | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/Utopia/Messaging/Adapters/Push/PushBullet.php b/src/Utopia/Messaging/Adapters/Push/PushBullet.php index 6dcdf46b..3622d154 100644 --- a/src/Utopia/Messaging/Adapters/Push/PushBullet.php +++ b/src/Utopia/Messaging/Adapters/Push/PushBullet.php @@ -3,19 +3,17 @@ namespace Utopia\Messaging\Adapters\Push; use Exception; - +use GuzzleHttp\Client; use Utopia\Messaging\Adapters\Push as PushAdapter; use Utopia\Messaging\Messages\Push; -use GuzzleHttp\Client; class PushBullet extends PushAdapter { /** * @param string $apiKey The PushBullet API key. */ - public function __construct(string $apiKey) + public function __construct(private string $apiKey) { - private string $apiKey; } /** @@ -35,6 +33,7 @@ public function getName(): string */ public function getMaxMessagesPerRequest(): int { + //TODO:: Didn't find the limit in PushBullet documentation return 1000; } @@ -57,7 +56,7 @@ public function process(Push $message): bool 'json' => $payload, ]); - return $response->getStatusCode() === 200; + return $response; } catch (Exception $e) { return false; }