Skip to content

Commit 7e88f8e

Browse files
authored
Merge pull request #1 from binary-cats/fix/license
Update LICENSE.md
2 parents b291f4e + 24d2ca5 commit 7e88f8e

File tree

8 files changed

+7
-9
lines changed

8 files changed

+7
-9
lines changed

LICENSE.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
The MIT License (MIT)
22

33
Copyright (c) Binary Cats <[email protected]>
4-
Original idea Spatie bvba <[email protected]>
54

65
Permission is hereby granted, free of charge, to any person obtaining a copy
76
of this software and associated documentation files (the "Software"), to deal

src/Event.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function __construct($attributes)
2828
*
2929
* @return Event
3030
*/
31-
public static function constructFrom($data) : self
31+
public static function constructFrom($data): self
3232
{
3333
return new static($data);
3434
}

src/Exceptions/WebhookFailed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class WebhookFailed extends Exception
99
{
10-
public static function signingSecretNotSet() : self
10+
public static function signingSecretNotSet(): self
1111
{
1212
return new static('The webhook signing secret is not set. Make sure that the `signing_secret` config key is set to the correct value.');
1313
}

src/Jobs/HandleDelivered.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
use Illuminate\Queue\SerializesModels;
77
use Spatie\WebhookClient\Models\WebhookCall;
88

9-
class HandleLetter_Created
9+
class HandleDelivered
1010
{
1111
use Dispatchable, SerializesModels;
1212

src/Webhook.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Webhook
1212
* @param string $secret
1313
* @return BinaryCats\LobWebhooks\Event
1414
*/
15-
public static function constructEvent(array $payload, array $signature, string $secret) : Event
15+
public static function constructEvent(array $payload, array $signature, string $secret): Event
1616
{
1717
// verify we are good, else throw an expection
1818
WebhookSignature::make($signature, $secret)->verify();

src/WebhookSignature.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ public static function make($signatureArray, string $secret)
5151
* @return bool
5252
* @throws BinaryCats\LobWebhooks\Exceptions\SignatureVerificationException when validation fails
5353
*/
54-
public function verify() : bool
54+
public function verify(): bool
5555
{
5656
if (hash_equals($this->signature, $this->computeSignature())) {
5757
return true;
5858
}
5959

60-
throw new SignatureVerificationException("Signature Verification Failed", 500);
60+
throw new SignatureVerificationException('Signature Verification Failed', 500);
6161
}
6262

6363
/**

tests/IntegrationTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace BinaryCats\LobWebhooks\Tests;
44

5-
use Illuminate\Support\Arr;
65
use Illuminate\Support\Facades\Event;
76
use Illuminate\Support\Facades\Route;
87
use Spatie\WebhookClient\Models\WebhookCall;

tests/TestCase.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function render($request, Exception $exception)
7373
}
7474

7575
/**
76-
* Compile lob.com siangure
76+
* Compile lob.com siangure.
7777
*
7878
* @param array $payload
7979
* @param int $timestamp

0 commit comments

Comments
 (0)