@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | */ |
19 | -class Patreon2Endpoints extends EndpointMap{ |
|
19 | +class Patreon2Endpoints extends EndpointMap { |
|
20 | 20 | |
21 | 21 | protected string $API_BASE = '/v2'; |
22 | 22 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | */ |
19 | -class Patreon1Endpoints extends EndpointMap{ |
|
19 | +class Patreon1Endpoints extends EndpointMap { |
|
20 | 20 | |
21 | 21 | protected string $API_BASE = '/api'; |
22 | 22 |
@@ -23,7 +23,7 @@ |
||
23 | 23 | * @method \Psr\Http\Message\ResponseInterface memberId(string $member_id, array $params = ['fields[member]', 'fields[tier]', 'fields[user]']) |
24 | 24 | * @method \Psr\Http\Message\ResponseInterface webhooks(array $params = ['fields[webhook]']) |
25 | 25 | */ |
26 | -class Patreon2 extends PatreonAbstract{ |
|
26 | +class Patreon2 extends PatreonAbstract { |
|
27 | 27 | |
28 | 28 | // wow, consistency... |
29 | 29 | public const SCOPE_IDENTITY = 'identity'; |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | protected ?string $endpointMap = TwitchEndpoints::class; |
56 | 56 | protected ?string $apiDocs = 'https://dev.twitch.tv/docs/api/reference/'; |
57 | 57 | protected ?string $applicationURL = 'https://dev.twitch.tv/console/apps/create'; |
58 | - protected string $authMethodHeader = 'OAuth'; // -> https://api.twitch.tv/kraken |
|
58 | + protected string $authMethodHeader = 'OAuth'; // -> https://api.twitch.tv/kraken |
|
59 | 59 | # protected string $authMethodHeader = 'Bearer'; // -> https://api.twitch.tv/helix |
60 | 60 | protected array $authHeaders = ['Accept' => 'application/vnd.twitchtv.v5+json']; |
61 | 61 | protected array $apiHeaders = ['Accept' => 'application/vnd.twitchtv.v5+json']; |
@@ -74,7 +74,7 @@ discard block |
||
74 | 74 | 'grant_type' => 'client_credentials', |
75 | 75 | ]; |
76 | 76 | |
77 | - if($scopes !== null){ |
|
77 | + if ($scopes !== null) { |
|
78 | 78 | $params['scope'] = implode($this->scopesDelimiter, $scopes); |
79 | 79 | } |
80 | 80 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | ->withBody($this->streamFactory->createStream(http_build_query($params, '', '&', PHP_QUERY_RFC1738))) |
85 | 85 | ; |
86 | 86 | |
87 | - foreach($this->authHeaders as $header => $value){ |
|
87 | + foreach ($this->authHeaders as $header => $value) { |
|
88 | 88 | $request = $request->withAddedHeader($header, $value); |
89 | 89 | } |
90 | 90 |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * @link https://dev.twitch.tv/docs/api/reference/ |
19 | 19 | */ |
20 | -class TwitchEndpoints extends EndpointMap{ |
|
20 | +class TwitchEndpoints extends EndpointMap { |
|
21 | 21 | |
22 | 22 | protected array $me = [ |
23 | 23 | 'path' => '/user', |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * @link https://stripe.com/docs/api |
19 | 19 | */ |
20 | -class StripeEndpoints extends EndpointMap{ |
|
20 | +class StripeEndpoints extends EndpointMap { |
|
21 | 21 | |
22 | 22 | protected array $me = [ |
23 | 23 | 'path' => '/accounts', |
@@ -17,7 +17,7 @@ |
||
17 | 17 | /** |
18 | 18 | * @link https://www.tumblr.com/docs/en/api/v2 |
19 | 19 | */ |
20 | -class TumblrEndpoints extends EndpointMap{ |
|
20 | +class TumblrEndpoints extends EndpointMap { |
|
21 | 21 | |
22 | 22 | protected array $me = [ |
23 | 23 | 'path' => '/user/info', |
@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * @method \Psr\Http\Message\ResponseInterface me() |
21 | 21 | */ |
22 | -class Tumblr extends OAuth1Provider{ |
|
22 | +class Tumblr extends OAuth1Provider { |
|
23 | 23 | |
24 | 24 | protected string $requestTokenURL = 'https://www.tumblr.com/oauth/request_token'; |
25 | 25 | protected string $authURL = 'https://www.tumblr.com/oauth/authorize'; |
@@ -16,7 +16,7 @@ |
||
16 | 16 | |
17 | 17 | /** |
18 | 18 | */ |
19 | -class AmazonEndpoints extends EndpointMap{ |
|
19 | +class AmazonEndpoints extends EndpointMap { |
|
20 | 20 | |
21 | 21 | protected array $userProfile = [ |
22 | 22 | 'path' => '/user/profile', |