File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ class Webhook
18
18
public static function constructEvent (array $ payload , array $ signature , string $ secret ): Event
19
19
{
20
20
// verify we are good, else throw an expection
21
- if (!WebhookSignature::make ($ signature , $ secret )->verify ()) {
21
+ if (! WebhookSignature::make ($ signature , $ secret )->verify ()) {
22
22
throw WebhookFailed::invalidSignature ();
23
23
}
24
24
Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ public function a_request_with_a_config_key_will_use_the_correct_signing_secret(
166
166
->assertSuccessful ();
167
167
}
168
168
169
-
170
169
/** @test */
171
170
public function an_invalid_signature_value_generates_a_500_error ()
172
171
{
@@ -180,7 +179,7 @@ public function an_invalid_signature_value_generates_a_500_error()
180
179
Arr::set ($ payload , 'signature ' , [
181
180
'timestamp ' => time (),
182
181
'token ' => 'some token ' ,
183
- 'signature ' => 'invalid_signature '
182
+ 'signature ' => 'invalid_signature ' ,
184
183
]);
185
184
186
185
$ this
You can’t perform that action at this time.
0 commit comments