Skip to content

Commit

Permalink
linter fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-aln committed Oct 18, 2024
1 parent 1ed00d0 commit 569ef06
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/PubNub/CryptoModule.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public function parseInput(string | object $input): string
throw new PubNubResponseParsingException("Decryption error: message is not a string or object");
}

if (strlen($input) == '') {
if (trim($input) == '') {
throw new PubNubResponseParsingException("Decryption error: message is empty");
}
return $input;
Expand Down
2 changes: 1 addition & 1 deletion src/PubNub/Endpoints/Access/GrantToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public function sync(): string

/**
* @param string $token
* @return : string
* @return string
*/
public function createResponse($response): string
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public function __construct($result)

public function __toString()
{
return "Get file URL success with URL: %s" % $this->fileUrl;
return sprintf("Get file URL success with URL: %s", $this->fileUrl);
}

public function getFileUrl()
Expand Down

0 comments on commit 569ef06

Please sign in to comment.