@@ -19,7 +19,7 @@ |
||
19 | 19 | * |
20 | 20 | * Note: the endpoints are ordered by the api docs (against any logical pattern) |
21 | 21 | */ |
22 | -class SpotifyEndpoints extends EndpointMap{ |
|
22 | +class SpotifyEndpoints extends EndpointMap { |
|
23 | 23 | |
24 | 24 | protected $API_BASE = '/v1'; |
25 | 25 |
@@ -230,7 +230,7 @@ discard block |
||
230 | 230 | * @method \Psr\Http\Message\ResponseInterface wvwUpgrades(array $params = ['lang']) |
231 | 231 | * @method \Psr\Http\Message\ResponseInterface wvwUpgradesId(string $id, array $params = ['lang']) |
232 | 232 | */ |
233 | -class GuildWars2 extends OAuth2Provider{ |
|
233 | +class GuildWars2 extends OAuth2Provider { |
|
234 | 234 | |
235 | 235 | public const SCOPE_ACCOUNT = 'account'; |
236 | 236 | public const SCOPE_INVENTORIES = 'inventories'; |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | */ |
261 | 261 | public function storeGW2Token(string $access_token):AccessToken{ |
262 | 262 | |
263 | - if(!preg_match('/^[a-f\d\-]{72}$/i', $access_token)){ |
|
263 | + if (!preg_match('/^[a-f\d\-]{72}$/i', $access_token)) { |
|
264 | 264 | throw new ProviderException('invalid token'); |
265 | 265 | } |
266 | 266 | |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | |
271 | 271 | $tokeninfo = Psr7\get_json($this->http->sendRequest($request)); |
272 | 272 | |
273 | - if(isset($tokeninfo->id) && strpos($access_token, $tokeninfo->id) === 0){ |
|
273 | + if (isset($tokeninfo->id) && strpos($access_token, $tokeninfo->id) === 0) { |
|
274 | 274 | |
275 | 275 | $token = new AccessToken([ |
276 | 276 | 'provider' => $this->serviceName, |
@@ -14,7 +14,7 @@ |
||
14 | 14 | |
15 | 15 | use chillerlan\HTTP\MagicAPI\EndpointMap; |
16 | 16 | |
17 | -class GuildWars2Endpoints extends EndpointMap{ |
|
17 | +class GuildWars2Endpoints extends EndpointMap { |
|
18 | 18 | |
19 | 19 | protected $account = [ |
20 | 20 | 'path' => '/account', |
@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * @todo: https://developer.twitter.com/en/docs/basics/authentication/api-reference/invalidate_token |
23 | 23 | */ |
24 | -class TwitterCC extends OAuth2Provider implements ClientCredentials{ |
|
24 | +class TwitterCC extends OAuth2Provider implements ClientCredentials { |
|
25 | 25 | |
26 | 26 | protected const AUTH_ERRMSG = 'TwitterCC only supports Client Credentials Grant, use the Twitter OAuth1 class for authentication instead.'; |
27 | 27 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * |
20 | 20 | * Note: the endpoints are ordered by the api docs (against any logical pattern) |
21 | 21 | */ |
22 | -class TwitterEndpoints extends EndpointMap{ |
|
22 | +class TwitterEndpoints extends EndpointMap { |
|
23 | 23 | |
24 | 24 | /** |
25 | 25 | * 1 Basics |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | 'method' => 'POST', |
124 | 124 | 'query' => [], |
125 | 125 | 'path_elements' => [], |
126 | - 'body' => ['name', 'url', 'location', 'description', 'profile_link_color', 'include_entities', 'skip_status',], |
|
126 | + 'body' => ['name', 'url', 'location', 'description', 'profile_link_color', 'include_entities', 'skip_status', ], |
|
127 | 127 | 'headers' => [], |
128 | 128 | ]; |
129 | 129 | |
@@ -415,7 +415,7 @@ discard block |
||
415 | 415 | protected $friendshipsShow = [ |
416 | 416 | 'path' => '/friendships/show.json', |
417 | 417 | 'method' => 'GET', |
418 | - 'query' => ['source_id', 'source_screen_name', 'target_id', 'target_screen_name',], |
|
418 | + 'query' => ['source_id', 'source_screen_name', 'target_id', 'target_screen_name', ], |
|
419 | 419 | 'path_elements' => [], |
420 | 420 | 'body' => null, |
421 | 421 | 'headers' => [], |
@@ -129,11 +129,11 @@ |
||
129 | 129 | * @method \Psr\Http\Message\ResponseInterface usersSuggestionsSlugMembers(string $slug, array $params = ['lang']) |
130 | 130 | * @method \Psr\Http\Message\ResponseInterface verifyCredentials(array $params = ['include_entities', 'skip_status']) |
131 | 131 | */ |
132 | -class Twitter extends OAuth1Provider{ |
|
132 | +class Twitter extends OAuth1Provider { |
|
133 | 133 | |
134 | 134 | // choose your fighter |
135 | 135 | /** @link https://developer.twitter.com/en/docs/basics/authentication/api-reference/authorize */ |
136 | - protected $authURL = 'https://api.twitter.com/oauth/authorize'; |
|
136 | + protected $authURL = 'https://api.twitter.com/oauth/authorize'; |
|
137 | 137 | /** @link https://developer.twitter.com/en/docs/basics/authentication/api-reference/authenticate */ |
138 | 138 | # protected $authURL = 'https://api.twitter.com/oauth/authenticate'; |
139 | 139 |
@@ -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 $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 $apiURL = 'https://api.tumblr.com/v2'; |
25 | 25 | protected $requestTokenURL = 'https://www.tumblr.com/oauth/request_token'; |
@@ -22,7 +22,7 @@ |
||
22 | 22 | * @link https://api.slack.com/docs/conversations-api |
23 | 23 | * @link https://api.slack.com/rtm |
24 | 24 | */ |
25 | -class SlackEndpoints extends EndpointMap{ |
|
25 | +class SlackEndpoints extends EndpointMap { |
|
26 | 26 | |
27 | 27 | protected $userIdentity = [ |
28 | 28 | 'path' => '/users.identity', |