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 22, 2024
1 parent b51b6ba commit 65cd828
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -3145,11 +3145,6 @@ parameters:
count: 1
path: src/PubNub/Models/Consumer/FileSharing/PNGetFileDownloadURLResult.php

-
message: "#^Method PubNub\\\\Models\\\\Consumer\\\\FileSharing\\\\PNGetFileDownloadURLResult\\:\\:__toString\\(\\) should return string but returns int\\.$#"
count: 1
path: src/PubNub/Models/Consumer/FileSharing/PNGetFileDownloadURLResult.php

-
message: "#^Method PubNub\\\\Models\\\\Consumer\\\\FileSharing\\\\PNGetFileDownloadURLResult\\:\\:getFileUrl\\(\\) has no return type specified\\.$#"
count: 1
Expand Down
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
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 "Get file URL success with URL: {$this->fileUrl}";
}

public function getFileUrl()
Expand Down

0 comments on commit 65cd828

Please sign in to comment.