Skip to content

Commit 6d2838b

Browse files
authored
Merge pull request #15 from binary-cats/analysis-4x1j1N
Apply fixes from StyleCI
2 parents dd26a1b + 8593e25 commit 6d2838b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Webhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/IntegrationTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)