Skip to content

Commit

Permalink
fix: spelling errors (#131)
Browse files Browse the repository at this point in the history
  • Loading branch information
ArthurPatriot authored Apr 5, 2024
1 parent 598bc99 commit d4f6832
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function subscribe(Connection $connection, ?string $auth = null, ?string
}

/**
* Deteremine whether the given authentication token is valid.
* Determine whether the given authentication token is valid.
*/
protected function verify(Connection $connection, ?string $auth = null, ?string $data = null): bool
{
Expand Down
2 changes: 1 addition & 1 deletion src/Protocols/Pusher/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ abstract class Controller
protected ?Application $application = null;

/**
* Active chnnels for the application.
* Active channels for the application.
*/
protected ?ChannelManager $channels = null;

Expand Down
2 changes: 1 addition & 1 deletion tests/FakeConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class FakeConnection extends BaseConnection
use GeneratesIdentifiers;

/**
* Messages reveived by the connection.
* Messages received by the connection.
*
* @var array<int, string>
*/
Expand Down
4 changes: 2 additions & 2 deletions tests/ReverbTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ public function signedRequest(string $path, string $method = 'GET', mixed $data
/**
* Send a POST request to the server.
*/
public function postReqeust(string $path, ?array $data = [], string $host = '0.0.0.0', string $port = '8080', string $appId = '123456'): PromiseInterface
public function postRequest(string $path, ?array $data = [], string $host = '0.0.0.0', string $port = '8080', string $appId = '123456'): PromiseInterface
{
return $this->request($path, 'POST', $data, $host, $port, $appId);
}
Expand All @@ -175,7 +175,7 @@ public function signedPostRequest(string $path, ?array $data = [], string $host
$string = "POST\n/apps/{$appId}/{$path}\n$query";
$signature = hash_hmac('sha256', $string, 'reverb-secret');

return $this->postReqeust("{$path}?{$query}&auth_signature={$signature}", $data, $host, $port, $appId);
return $this->postRequest("{$path}?{$query}&auth_signature={$signature}", $data, $host, $port, $appId);
}

/**
Expand Down

0 comments on commit d4f6832

Please sign in to comment.