Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
heyjorgedev authored and github-actions[bot] committed Jul 27, 2024
1 parent 5d491f1 commit c767c4a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/QStash.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,14 @@ public static function client(#[\SensitiveParameter] string $apiKey): Client

public static function factory(): Factory
{
return new Factory();
return new Factory;
}

/**
* @param array<string> $signingKeys
*/
public static function receiver(array $signingKeys, ?ClockInterface $clock = null): Receiver
{
return new Receiver($clock ?? new SystemClock(), $signingKeys);
return new Receiver($clock ?? new SystemClock, $signingKeys);
}
}
4 changes: 2 additions & 2 deletions src/Receiver.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ public function __construct(protected ClockInterface $clock, array $signingKeys)

$this->jwsVerifier = new JWSVerifier(
signatureAlgorithmManager: new AlgorithmManager([
new HS256(),
new HS256,
]),
);

$this->serializer = new JWSSerializerManager([
new CompactSerializer(),
new CompactSerializer,
]);

$keys = [];
Expand Down
2 changes: 1 addition & 1 deletion tests/ReceiverTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

it('can verify a token', function () {
// mocks the expiration date
$now = (new DateTimeImmutable())->setTimestamp(1721069141);
$now = (new DateTimeImmutable)->setTimestamp(1721069141);

$receiver = new Receiver(new MockClock($now), [
'sig_561zQH6V9b96E63sS3b9wvGXosi7',
Expand Down

0 comments on commit c767c4a

Please sign in to comment.