Skip to content

Commit bdea329

Browse files
imdhemyactions-user
authored andcommitted
Fix styling
1 parent 139a35f commit bdea329

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Http/Controllers/ServerNotificationController.php

+4-2
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@ public function google(GoogleDeveloperNotificationRequest $request)
2222
{
2323
$data = $request->getData();
2424

25-
if (!$this->isParsable($data)) {
25+
if (! $this->isParsable($data)) {
2626
Log::info(sprintf("Google Play malformed RTDN: %s", json_encode($request->all())));
27+
2728
return;
2829
}
2930

@@ -65,6 +66,7 @@ public function apple(AppStoreServerNotificationRequest $request)
6566
protected function isParsable(string $data): bool
6667
{
6768
$decodedData = json_decode(base64_decode($data), true);
68-
return !is_null($decodedData);
69+
70+
return ! is_null($decodedData);
6971
}
7072
}

tests/Http/Controllers/ServerNotificationControllerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function test_google_test_notification()
4545
$this->post($uri, $data)->assertStatus(200);
4646

4747
$this->assertTrue(
48-
!empty(file_get_contents(storage_path("/logs/laravel.log")))
48+
! empty(file_get_contents(storage_path("/logs/laravel.log")))
4949
);
5050
}
5151

@@ -76,7 +76,7 @@ public function test_it_logs_the_weird_ZnNk_weird_token()
7676
$this->post($uri, $data)->assertStatus(200);
7777

7878
$this->assertTrue(
79-
!empty(file_get_contents(storage_path("/logs/laravel.log")))
79+
! empty(file_get_contents(storage_path("/logs/laravel.log")))
8080
);
8181
}
8282
}

0 commit comments

Comments
 (0)