Skip to content

Commit 11ae8f7

Browse files
committed
Format code
See #70
1 parent d4979f7 commit 11ae8f7

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

tests/Unit/ExpoPushConnectorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ public function default_headers_include_accept_encoding_and_user_agent(): void
4646
$connector = new ExpoPushConnector();
4747

4848
$this->assertSame('gzip, deflate', $connector->headers()->get('Accept-Encoding'));
49-
$this->assertStringStartsWith('expo-server-sdk-php/', (string)$connector->headers()->get('User-Agent'));
50-
$this->assertStringContainsString('(dru1x)', (string)$connector->headers()->get('User-Agent'));
49+
$this->assertStringStartsWith('expo-server-sdk-php/', (string) $connector->headers()->get('User-Agent'));
50+
$this->assertStringContainsString('(dru1x)', (string) $connector->headers()->get('User-Agent'));
5151
}
5252

5353
#[Test]

tests/Unit/Request/GetReceiptsRequestTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ public function create_dto_from_response_returns_push_receipt_collection(): void
137137
public function create_dto_from_response_maps_unrecognized_error_code_to_unknown(): void
138138
{
139139
$request = new GetReceiptsRequest(
140-
new PushReceiptIdCollection()
140+
new PushReceiptIdCollection(),
141141
);
142142

143143
$this->mockClient->addResponses([
@@ -154,12 +154,12 @@ public function create_dto_from_response_maps_unrecognized_error_code_to_unknown
154154
],
155155
],
156156
],
157-
headers: ['Content-Type' => 'application/json']
157+
headers: ['Content-Type' => 'application/json'],
158158
),
159159
]);
160160

161161
$dto = $request->createDtoFromResponse(
162-
$this->connector->send($request)
162+
$this->connector->send($request),
163163
);
164164

165165
$receipt = $dto->get(0);

tests/Unit/Request/SendNotificationsRequestTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ public function create_dto_from_response_maps_unrecognized_error_code_to_unknown
173173
$request = new SendNotificationsRequest(
174174
new PushMessageCollection(
175175
new PushMessage(to: new PushToken('ExponentPushToken[zzzzzzzzzzzzzzzzzzzzzz]')),
176-
)
176+
),
177177
);
178178

179179
$this->mockClient->addResponses([
@@ -190,12 +190,12 @@ public function create_dto_from_response_maps_unrecognized_error_code_to_unknown
190190
],
191191
],
192192
],
193-
headers: ['Content-Type' => 'application/json']
193+
headers: ['Content-Type' => 'application/json'],
194194
),
195195
]);
196196

197197
$dto = $request->createDtoFromResponse(
198-
$this->connector->send($request)
198+
$this->connector->send($request),
199199
);
200200

201201
$ticket = $dto->get(0);

0 commit comments

Comments
 (0)