File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed
Models/Consumer/FileSharing Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ public function parseInput(string | object $input): string
178
178
throw new PubNubResponseParsingException ("Decryption error: message is not a string or object " );
179
179
}
180
180
181
- if (strlen ($ input ) == '' ) {
181
+ if (trim ($ input ) == '' ) {
182
182
throw new PubNubResponseParsingException ("Decryption error: message is empty " );
183
183
}
184
184
return $ input ;
Original file line number Diff line number Diff line change 2
2
3
3
namespace PubNub \Endpoints \Access ;
4
4
5
+
5
6
use PubNub \Endpoints \Endpoint ;
6
7
use PubNub \Exceptions \PubNubValidationException ;
7
- use PubNub \Models \Consumer \AccessManager \PNAccessManagerGrantResult ;
8
8
use PubNub \PubNubUtil ;
9
9
use PubNub \Enums \PNHttpMethod ;
10
10
use PubNub \Enums \PNOperationType ;
11
11
use PubNub \Exceptions \PubNubTokenParseException ;
12
12
use PubNub \Models \Consumer \AccessManager \PNAccessManagerTokenResult ;
13
13
use PubNub \PubNubCborDecode ;
14
14
15
+
15
16
class GrantToken extends Endpoint
16
17
{
17
18
protected const PATH = '/v3/pam/%s/grant ' ;
@@ -239,16 +240,16 @@ public function buildPath()
239
240
/**
240
241
* @return string
241
242
*/
242
- public function sync (): string
243
+ public function sync () : string
243
244
{
244
245
return parent ::sync ();
245
246
}
246
247
247
248
/**
248
249
* @param string $token
249
- * @return : string
250
+ * @return string
250
251
*/
251
- public function createResponse ($ response ): string
252
+ public function createResponse ($ response ) : string
252
253
{
253
254
return $ response ['data ' ]['token ' ];
254
255
}
Original file line number Diff line number Diff line change 2
2
3
3
namespace PubNub \Models \Consumer \FileSharing ;
4
4
5
+
5
6
class PNGetFileDownloadURLResult
6
7
{
7
8
protected string $ fileUrl ;
@@ -13,7 +14,7 @@ public function __construct($result)
13
14
14
15
public function __toString ()
15
16
{
16
- return "Get file URL success with URL: %s " % $ this ->fileUrl ;
17
+ return "Get file URL success with URL: { $ this ->fileUrl }" ;
17
18
}
18
19
19
20
public function getFileUrl ()
You can’t perform that action at this time.
0 commit comments