File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ public function google(GoogleDeveloperNotificationRequest $request)
22
22
{
23
23
$ data = $ request ->getData ();
24
24
25
- if (!$ this ->isParsable ($ data )) {
25
+ if (! $ this ->isParsable ($ data )) {
26
26
Log::info (sprintf ("Google Play malformed RTDN: %s " , json_encode ($ request ->all ())));
27
+
27
28
return ;
28
29
}
29
30
@@ -65,6 +66,7 @@ public function apple(AppStoreServerNotificationRequest $request)
65
66
protected function isParsable (string $ data ): bool
66
67
{
67
68
$ decodedData = json_decode (base64_decode ($ data ), true );
68
- return !is_null ($ decodedData );
69
+
70
+ return ! is_null ($ decodedData );
69
71
}
70
72
}
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ public function test_google_test_notification()
45
45
$ this ->post ($ uri , $ data )->assertStatus (200 );
46
46
47
47
$ this ->assertTrue (
48
- !empty (file_get_contents (storage_path ("/logs/laravel.log " )))
48
+ ! empty (file_get_contents (storage_path ("/logs/laravel.log " )))
49
49
);
50
50
}
51
51
@@ -76,7 +76,7 @@ public function test_it_logs_the_weird_ZnNk_weird_token()
76
76
$ this ->post ($ uri , $ data )->assertStatus (200 );
77
77
78
78
$ this ->assertTrue (
79
- !empty (file_get_contents (storage_path ("/logs/laravel.log " )))
79
+ ! empty (file_get_contents (storage_path ("/logs/laravel.log " )))
80
80
);
81
81
}
82
82
}
You can’t perform that action at this time.
0 commit comments