Skip to content

Commit

Permalink
debug phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Repin committed Oct 5, 2024
1 parent b5e0e2b commit 5a7a539
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion www/src/Singurix/Chat/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

class Client
{

private SocketChat $socketChat;

public function __construct(SocketChat $socketChat)
Expand Down
2 changes: 1 addition & 1 deletion www/src/Singurix/Chat/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ private function readMessage(): void
Stdout::printToConsole("To stop the server, type 'stop'", true);

do {
if($this->socketChat->accept()) {
if ($this->socketChat->accept()) {
break;
}
$this->checkStop();
Expand Down
2 changes: 1 addition & 1 deletion www/src/Singurix/Chat/SocketChat.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public function setNonBlock(): void
socket_set_nonblock($this->connection);
}

public function isConnected(): \Socket|Bool
public function isConnected(): \Socket|bool
{
return $this->connection;
}
Expand Down

0 comments on commit 5a7a539

Please sign in to comment.