Skip to content

Apply fixes from StyleCI #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Webhook
public static function constructEvent(array $payload, array $signature, string $secret): Event
{
// verify we are good, else throw an expection
if (!WebhookSignature::make($signature, $secret)->verify()) {
if (! WebhookSignature::make($signature, $secret)->verify()) {
throw WebhookFailed::invalidSignature();
}

Expand Down
3 changes: 1 addition & 2 deletions tests/IntegrationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ public function a_request_with_a_config_key_will_use_the_correct_signing_secret(
->assertSuccessful();
}


/** @test */
public function an_invalid_signature_value_generates_a_500_error()
{
Expand All @@ -180,7 +179,7 @@ public function an_invalid_signature_value_generates_a_500_error()
Arr::set($payload, 'signature', [
'timestamp' => time(),
'token' => 'some token',
'signature' => 'invalid_signature'
'signature' => 'invalid_signature',
]);

$this
Expand Down