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
1818 public static function constructEvent (array $ payload , array $ signature , string $ secret ): Event
1919 {
2020 // verify we are good, else throw an expection
21- if (!WebhookSignature::make ($ signature , $ secret )->verify ()) {
21+ if (! WebhookSignature::make ($ signature , $ secret )->verify ()) {
2222 throw WebhookFailed::invalidSignature ();
2323 }
2424
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(
166166 ->assertSuccessful ();
167167 }
168168
169-
170169 /** @test */
171170 public function an_invalid_signature_value_generates_a_500_error ()
172171 {
@@ -180,7 +179,7 @@ public function an_invalid_signature_value_generates_a_500_error()
180179 Arr::set ($ payload , 'signature ' , [
181180 'timestamp ' => time (),
182181 'token ' => 'some token ' ,
183- 'signature ' => 'invalid_signature '
182+ 'signature ' => 'invalid_signature ' ,
184183 ]);
185184
186185 $ this
You can’t perform that action at this time.
0 commit comments