Skip to content

Commit 59430fc

Browse files
committed
Apply stylefix
1 parent 9096e4e commit 59430fc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

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/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\MailgunWebhooks\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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public static function make($signatureArray, string $secret)
4949
*
5050
* @return bool
5151
*/
52-
public function verify() : bool
52+
public function verify(): bool
5353
{
5454
return hash_equals($this->signature, $this->computeSignature());
5555
}

0 commit comments

Comments
 (0)