Skip to content

Commit 569ef06

Browse files
committed
linter fixes
1 parent 1ed00d0 commit 569ef06

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/PubNub/CryptoModule.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public function parseInput(string | object $input): string
178178
throw new PubNubResponseParsingException("Decryption error: message is not a string or object");
179179
}
180180

181-
if (strlen($input) == '') {
181+
if (trim($input) == '') {
182182
throw new PubNubResponseParsingException("Decryption error: message is empty");
183183
}
184184
return $input;

src/PubNub/Endpoints/Access/GrantToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ public function sync(): string
246246

247247
/**
248248
* @param string $token
249-
* @return : string
249+
* @return string
250250
*/
251251
public function createResponse($response): string
252252
{

src/PubNub/Models/Consumer/FileSharing/PNGetFileDownloadURLResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ public function __construct($result)
1313

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

1919
public function getFileUrl()

0 commit comments

Comments
 (0)