Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Feb 14, 2024
1 parent ece9d50 commit 1062ee7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
8 changes: 2 additions & 6 deletions src/Protocols/Pusher/Channels/ChannelConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,7 @@ public function connection(): Connection
*/
public function data(?string $key = null): mixed
{
if ($key) {
return Arr::get($this->data, $key);
}

return $this->data;
return $key ? Arr::get($this->data, $key) : $this->data;
}

/**
Expand All @@ -44,7 +40,7 @@ public function send(string $message): void
}

/**
* Call the method on the connection.
* Proxy the given method to the underlying connection.
*/
public function __call(string $method, array $parameters): mixed
{
Expand Down
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 auth token is valid.
* Deteremine whether the given authentication token is valid.
*/
protected function verify(Connection $connection, string $auth, ?string $data = null): bool
{
Expand Down

0 comments on commit 1062ee7

Please sign in to comment.