Skip to content

Commit

Permalink
Fix code styling
Browse files Browse the repository at this point in the history
  • Loading branch information
joedixon authored and github-actions[bot] committed Dec 1, 2023
1 parent 159e06f commit 5e66707
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions src/Managers/CacheChannelConnectionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ protected function key(): string
*/
public function add(Connection $connection, array $data): void
{
$connections = $this->repository->get($this->key(), []);
$connections = $this->repository->get($this->key(), []);

$connections[$connection->identifier()] = $data;

$this->repository->put($this->key(), $connections);
Expand All @@ -55,10 +55,10 @@ public function add(Connection $connection, array $data): void
*/
public function remove(Connection $connection): void
{
$connections = $this->repository->get($this->key());
$connections = $this->repository->get($this->key());

unset($connections[$connection->identifier()]);

$this->repository->put($this->key(), $connections);
}

Expand All @@ -76,13 +76,13 @@ public function find(Connection $connection): ?ChannelConnection
public function findById(string $id): ?ChannelConnection
{
$connection = $this->connections->find($id);
if(!$connection){

if (! $connection) {
return null;
}

return new ChannelConnection(
$connection,
$connection,
$this->repository->get($this->key())[$id] ?? []
);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Managers/CacheChannelManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function channels(string $channel = null): Channel|array
{
$channels = $this->repository->get($this->prefix, []);

if(!isset($channels[$this->application->id()])){
if (! isset($channels[$this->application->id()])) {
$channels[$this->application->id()] = [];
}

Expand Down
2 changes: 1 addition & 1 deletion src/Servers/ApiGateway/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public function __construct(
protected ApplicationProvider $applications,
protected ConnectionManager $connections,
) {
//
//
}

/**
Expand Down

0 comments on commit 5e66707

Please sign in to comment.