@@ -65,14 +65,14 @@ private function getMaxRequests(ResponseInterface $response): int
65
65
{
66
66
$ values = $ response ->getHeader ("x-ratelimit-limit " );
67
67
68
- return count ($ values ) > 0 ? (int )$ values [0 ] : 0 ;
68
+ return count ($ values ) > 0 ? (int ) $ values [0 ] : 0 ;
69
69
}
70
70
71
71
private function getRemainingRequests (ResponseInterface $ response ): int
72
72
{
73
73
$ values = $ response ->getHeader ("x-ratelimit-remaining " );
74
74
75
- return count ($ values ) > 0 ? (int )$ values [0 ] : 0 ;
75
+ return count ($ values ) > 0 ? (int ) $ values [0 ] : 0 ;
76
76
}
77
77
78
78
private function check (ResponseInterface $ response )
@@ -337,8 +337,8 @@ public function link(array $arguments): CallResult
337
337
"deviceId " => $ arguments ["deviceId " ],
338
338
"identification " => $ this ->userIdentifiersToArray (
339
339
new UserIdentified (
340
- isset ($ arguments ["userId " ]) ? (string )$ arguments ["userId " ] : null ,
341
- isset ($ arguments ["email " ]) ? (string )$ arguments ["email " ] : null
340
+ isset ($ arguments ["userId " ]) ? (string ) $ arguments ["userId " ] : null ,
341
+ isset ($ arguments ["email " ]) ? (string ) $ arguments ["email " ] : null
342
342
)
343
343
),
344
344
];
@@ -402,7 +402,7 @@ private function formatMetadata(array $metadata): array
402
402
continue ;
403
403
}
404
404
405
- $ formatted [$ name ] = (string )$ value ;
405
+ $ formatted [$ name ] = (string ) $ value ;
406
406
}
407
407
408
408
return $ formatted ;
@@ -426,7 +426,7 @@ private function formatProperties(array $properties): array
426
426
continue ;
427
427
}
428
428
429
- $ formatted [$ name ] = (string )$ value ;
429
+ $ formatted [$ name ] = (string ) $ value ;
430
430
}
431
431
432
432
return $ formatted ;
@@ -437,8 +437,8 @@ public function upsertUser(array $user): CallResult
437
437
$ payload = [
438
438
"identification " => $ this ->userIdentifiersToArray (
439
439
new UserIdentified (
440
- isset ($ user ["userId " ]) ? (string )$ user ["userId " ] : null ,
441
- isset ($ user ["email " ]) ? (string )$ user ["email " ] : null
440
+ isset ($ user ["userId " ]) ? (string ) $ user ["userId " ] : null ,
441
+ isset ($ user ["email " ]) ? (string ) $ user ["email " ] : null
442
442
)
443
443
),
444
444
];
@@ -496,8 +496,8 @@ public function upsertAccount(array $account): CallResult
496
496
$ payload = [
497
497
"identification " => $ this ->accountIdentifiersToArray (
498
498
new AccountIdentified (
499
- isset ($ account ["accountId " ]) ? (string )$ account ["accountId " ] : null ,
500
- isset ($ account ["domain " ]) ? (string )$ account ["domain " ] : null
499
+ isset ($ account ["accountId " ]) ? (string ) $ account ["accountId " ] : null ,
500
+ isset ($ account ["domain " ]) ? (string ) $ account ["domain " ] : null
501
501
)
502
502
),
503
503
];
@@ -512,8 +512,8 @@ function (array $user) {
512
512
return [
513
513
"identification " => $ this ->userIdentifiersToArray (
514
514
new UserIdentified (
515
- isset ($ user ["userId " ]) ? (string )$ user ["userId " ] : null ,
516
- isset ($ user ["email " ]) ? (string )$ user ["email " ] : null
515
+ isset ($ user ["userId " ]) ? (string ) $ user ["userId " ] : null ,
516
+ isset ($ user ["email " ]) ? (string ) $ user ["email " ] : null
517
517
)
518
518
),
519
519
];
0 commit comments