@@ -54,12 +54,11 @@ public function __construct(
5454 ];
5555
5656 if ($ accessToken ) {
57- $ headers ['Authorization ' ] = 'Bearer ' . $ accessToken ;
57+ $ headers ['Authorization ' ] = 'Bearer ' . $ accessToken ;
5858 }
5959
6060 $ this ->http = Http::withHeaders ($ headers )->baseUrl ($ apiUrl );
6161
62-
6362 // https://expo.dev/blog/expo-adds-support-for-fcm-http-v1-api
6463 if (config ('expo-notifications.service.use_fcm_legacy_api ' )) {
6564 $ this ->http ->withQueryParameters ([
@@ -107,7 +106,7 @@ public function receipts(Collection|array $tokenIds): Collection
107106 }
108107
109108 return collect ($ data ['data ' ])->map (function ($ responseItem , $ id ) {
110- $ data = (new PushReceiptResponse () )
109+ $ data = (new PushReceiptResponse )
111110 ->id ($ id )
112111 ->status ($ responseItem ['status ' ]);
113112
@@ -204,14 +203,14 @@ private function setTicketsFromData(array $data): ExpoNotificationsService
204203 ->each (function ($ responseItem ) {
205204 if ($ responseItem ['status ' ] === ExpoResponseStatus::ERROR ->value ) {
206205 $ this ->tickets ->push (
207- (new PushTicketResponse () )
206+ (new PushTicketResponse )
208207 ->status ($ responseItem ['status ' ])
209208 ->message ($ responseItem ['message ' ])
210209 ->details ($ responseItem ['details ' ])
211210 );
212211 } else {
213212 $ this ->tickets ->push (
214- (new PushTicketResponse () )
213+ (new PushTicketResponse )
215214 ->status ($ responseItem ['status ' ])
216215 ->ticketId ($ responseItem ['id ' ])
217216 );
0 commit comments