Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
totalimmersion committed Dec 4, 2024
1 parent 72c04b2 commit 16ef392
Showing 1 changed file with 59 additions and 59 deletions.
118 changes: 59 additions & 59 deletions lib/GetStream/StreamChat/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -544,77 +544,77 @@ public function unmute(string $userId): StreamResponse
];
return $this->client->post("moderation/unmute/channel", $postData);
}
}

/** Pins the channel for the user.
* @throws StreamException
*/
public function pin(string $userId): StreamResponse
{
if (empty($userId)) {
throw new StreamException("user ID must be not empty");
/** Pins the channel for the user.
* @throws StreamException
*/
public function pin(string $userId): StreamResponse
{
if (empty($userId)) {
throw new StreamException("user ID must be not empty");
}

$payload = [
"set" => [
"pinned" => true
]
];

return $this->client->patch($this->getUrl() . "/member/" . urlencode($userId), $payload);
}

$payload = [
"set" => [
"pinned" => true
]
];

return $this->client->patch($this->getUrl() . "/member/" . urlencode($userId), $payload);
}
/** Unpins the channel for the user.
* @throws StreamException
*/
public function unpin(string $userId): StreamResponse
{
if (empty($userId)) {
throw new StreamException("user ID must be not empty");
}

$payload = [
"set" => [
"pinned" => false
]
];

/** Unpins the channel for the user.
* @throws StreamException
*/
public function unpin(string $userId): StreamResponse
{
if (empty($userId)) {
throw new StreamException("user ID must be not empty");
return $this->client->patch($this->getUrl() . "/member/" . urlencode($userId), $payload);
}

$payload = [
"set" => [
"pinned" => false
]
];
/** Archives the channel for the user.
* @throws StreamException
*/
public function pin(string $userId): StreamResponse
{
if (empty($userId)) {
throw new StreamException("user ID must be not empty");
}

return $this->client->patch($this->getUrl() . "/member/" . urlencode($userId), $payload);
}
$payload = [
"set" => [
"archived" => true
]
];

/** Archives the channel for the user.
* @throws StreamException
*/
public function pin(string $userId): StreamResponse
{
if (empty($userId)) {
throw new StreamException("user ID must be not empty");
return $this->client->patch($this->getUrl() . "/member/" . urlencode($userId), $payload);
}

$payload = [
"set" => [
"archived" => true
]
];
/** Unarchives the channel for the user.
* @throws StreamException
*/
public function pin(string $userId): StreamResponse
{
if (empty($userId)) {
throw new StreamException("user ID must be not empty");
}

return $this->client->patch($this->getUrl() . "/member/" . urlencode($userId), $payload);
}
$payload = [
"set" => [
"archived" => false
]
];

/** Unarchives the channel for the user.
* @throws StreamException
*/
public function pin(string $userId): StreamResponse
{
if (empty($userId)) {
throw new StreamException("user ID must be not empty");
return $this->client->patch($this->getUrl() . "/member/" . urlencode($userId), $payload);
}

$payload = [
"set" => [
"archived" => false
]
];

return $this->client->patch($this->getUrl() . "/member/" . urlencode($userId), $payload);
}
}

0 comments on commit 16ef392

Please sign in to comment.