diff --git a/src/Protocols/Pusher/Channels/Concerns/InteractsWithPrivateChannels.php b/src/Protocols/Pusher/Channels/Concerns/InteractsWithPrivateChannels.php index 44e74189..6ab02acb 100644 --- a/src/Protocols/Pusher/Channels/Concerns/InteractsWithPrivateChannels.php +++ b/src/Protocols/Pusher/Channels/Concerns/InteractsWithPrivateChannels.php @@ -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 { diff --git a/src/Protocols/Pusher/Http/Controllers/Controller.php b/src/Protocols/Pusher/Http/Controllers/Controller.php index c42d4a34..e14bde10 100644 --- a/src/Protocols/Pusher/Http/Controllers/Controller.php +++ b/src/Protocols/Pusher/Http/Controllers/Controller.php @@ -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; diff --git a/tests/FakeConnection.php b/tests/FakeConnection.php index 308048ba..31ac5d3d 100644 --- a/tests/FakeConnection.php +++ b/tests/FakeConnection.php @@ -13,7 +13,7 @@ class FakeConnection extends BaseConnection use GeneratesIdentifiers; /** - * Messages reveived by the connection. + * Messages received by the connection. * * @var array */ diff --git a/tests/Feature/Protocols/Pusher/Reverb/ServerTest.php b/tests/Feature/Protocols/Pusher/Reverb/ServerTest.php index f9f480f6..99cb2512 100644 --- a/tests/Feature/Protocols/Pusher/Reverb/ServerTest.php +++ b/tests/Feature/Protocols/Pusher/Reverb/ServerTest.php @@ -141,21 +141,21 @@ $connection->assertReceived('{"event":"App\\\\Events\\\\TestEvent","data":"{\"foo\":\"bar\"}","channel":"presence-cache-test-channel"}'); }); -it('can receive a cach missed message when joining a cache channel with an empty cache', function () { +it('can receive a cache missed message when joining a cache channel with an empty cache', function () { $connection = connect(); subscribe('cache-test-channel', connection: $connection); $connection->assertReceived('{"event":"pusher:cache_miss","channel":"cache-test-channel"}'); }); -it('can receive a cach missed message when joining a private cache channel with an empty cache', function () { +it('can receive a cache missed message when joining a private cache channel with an empty cache', function () { $connection = connect(); subscribe('private-cache-test-channel', connection: $connection); $connection->assertReceived('{"event":"pusher:cache_miss","channel":"private-cache-test-channel"}'); }); -it('can receive a cach missed message when joining a presence cache channel with an empty cache', function () { +it('can receive a cache missed message when joining a presence cache channel with an empty cache', function () { $connection = connect(); subscribe('presence-cache-test-channel', connection: $connection); diff --git a/tests/ReverbTestCase.php b/tests/ReverbTestCase.php index 5a2e0ba9..3031e87c 100644 --- a/tests/ReverbTestCase.php +++ b/tests/ReverbTestCase.php @@ -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); } @@ -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); } /**