Skip to content

Commit 6273978

Browse files
committed
Revert phpstorm default reformatting
1 parent 88a3173 commit 6273978

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

src/Client.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,14 @@ private function getMaxRequests(ResponseInterface $response): int
6565
{
6666
$values = $response->getHeader("x-ratelimit-limit");
6767

68-
return count($values) > 0 ? (int)$values[0] : 0;
68+
return count($values) > 0 ? (int) $values[0] : 0;
6969
}
7070

7171
private function getRemainingRequests(ResponseInterface $response): int
7272
{
7373
$values = $response->getHeader("x-ratelimit-remaining");
7474

75-
return count($values) > 0 ? (int)$values[0] : 0;
75+
return count($values) > 0 ? (int) $values[0] : 0;
7676
}
7777

7878
private function check(ResponseInterface $response)
@@ -337,8 +337,8 @@ public function link(array $arguments): CallResult
337337
"deviceId" => $arguments["deviceId"],
338338
"identification" => $this->userIdentifiersToArray(
339339
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
342342
)
343343
),
344344
];
@@ -402,7 +402,7 @@ private function formatMetadata(array $metadata): array
402402
continue;
403403
}
404404

405-
$formatted[$name] = (string)$value;
405+
$formatted[$name] = (string) $value;
406406
}
407407

408408
return $formatted;
@@ -426,7 +426,7 @@ private function formatProperties(array $properties): array
426426
continue;
427427
}
428428

429-
$formatted[$name] = (string)$value;
429+
$formatted[$name] = (string) $value;
430430
}
431431

432432
return $formatted;
@@ -437,8 +437,8 @@ public function upsertUser(array $user): CallResult
437437
$payload = [
438438
"identification" => $this->userIdentifiersToArray(
439439
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
442442
)
443443
),
444444
];
@@ -496,8 +496,8 @@ public function upsertAccount(array $account): CallResult
496496
$payload = [
497497
"identification" => $this->accountIdentifiersToArray(
498498
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
501501
)
502502
),
503503
];
@@ -512,8 +512,8 @@ function (array $user) {
512512
return [
513513
"identification" => $this->userIdentifiersToArray(
514514
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
517517
)
518518
),
519519
];

0 commit comments

Comments
 (0)