Skip to content

Commit

Permalink
Fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell authored and github-actions[bot] committed Oct 24, 2024
1 parent e67b30e commit 6c83f67
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/Protocols/Pusher/EventHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ public function pong(Connection $connection): void
*/
public function ping(Connection $connection): void
{
$connection->usesControlFrames()
? $connection->control()
$connection->usesControlFrames()
? $connection->control()
: static::send($connection, 'ping');

$connection->ping();
Expand Down
3 changes: 1 addition & 2 deletions tests/FakeConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,7 @@ public function send(string $message): void
/**
* Send a control frame to the connection.
*/
public function control(string $type = Frame::OP_PING): void { }

public function control(string $type = Frame::OP_PING): void {}

/**
* Terminate a connection.
Expand Down
4 changes: 2 additions & 2 deletions tests/Feature/Protocols/Pusher/Reverb/ServerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@
$subscribedAt = $managedConnection->lastSeenAt();
sleep(1);
$connection->send(new Frame('', opcode: Frame::OP_PING));

$connection->assertPonged();
expect($managedConnection->lastSeenAt())->toBeGreaterThan($subscribedAt);
});
Expand All @@ -505,7 +505,7 @@
$subscribedAt = $managedConnection->lastSeenAt();
sleep(1);
$connection->send(new Frame('', opcode: Frame::OP_PONG));

$connection->assertNotPinged();
$connection->assertNotPonged();
expect($managedConnection->lastSeenAt())->toBeGreaterThan($subscribedAt);
Expand Down

0 comments on commit 6c83f67

Please sign in to comment.