Skip to content

Commit

Permalink
Update handling for getBaseApiUrl() when a token doesn’t yet exist
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Sep 27, 2024
1 parent 1545f15 commit 0b069f0
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/providers/Aweber.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Deezer.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Disqus.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Dribbble.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Facebook.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Generic.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Instagram.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}

Expand Down
2 changes: 1 addition & 1 deletion src/providers/Meetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Microsoft.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/MicrosoftEntra.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Odnoklassniki.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Pinterest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/StackExchange.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Unsplash.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}
2 changes: 1 addition & 1 deletion src/providers/Vimeo.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function getBaseApiUrl(?Token $token): ?string
public function getApiRequestQueryParams(?Token $token): array
{
return [
'access_token' => $token?->getToken() ?? '',
'access_token' => (string)($token?->getToken() ?? ''),
];
}
}

0 comments on commit 0b069f0

Please sign in to comment.