@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @link https://www.deviantart.com/developers/http/v1/20160316 |
| 19 | 19 | */ |
| 20 | -class DeviantArtEndpoints extends EndpointMap{ |
|
| 20 | +class DeviantArtEndpoints extends EndpointMap { |
|
| 21 | 21 | |
| 22 | 22 | protected $whoami = [ |
| 23 | 23 | 'path' => '/user/whoami', |
@@ -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 $me = [ |
| 23 | 23 | 'path' => '/user', |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | # protected $accessTokenExpires = true; |
| 52 | 52 | protected $authHeaders = ['Accept' => 'application/vnd.twitchtv.v5+json']; |
| 53 | 53 | protected $apiHeaders = ['Accept' => 'application/vnd.twitchtv.v5+json']; |
| 54 | - protected $authMethod = self::HEADER_OAUTH; // -> https://api.twitch.tv/kraken |
|
| 54 | + protected $authMethod = self::HEADER_OAUTH; // -> https://api.twitch.tv/kraken |
|
| 55 | 55 | # protected $authMethod = self::HEADER_BEARER; // -> https://api.twitch.tv/helix |
| 56 | 56 | protected $endpointMap = TwitchEndpoints::class; |
| 57 | 57 | protected $apiDocs = 'https://dev.twitch.tv/docs/api/reference/'; |
@@ -71,7 +71,7 @@ discard block |
||
| 71 | 71 | 'grant_type' => 'client_credentials', |
| 72 | 72 | ]; |
| 73 | 73 | |
| 74 | - if($scopes !== null){ |
|
| 74 | + if ($scopes !== null) { |
|
| 75 | 75 | $params['scope'] = implode($this->scopesDelimiter, $scopes); |
| 76 | 76 | } |
| 77 | 77 | |
@@ -81,7 +81,7 @@ discard block |
||
| 81 | 81 | ->withBody($this->streamFactory->createStream(http_build_query($params, '', '&', PHP_QUERY_RFC1738))) |
| 82 | 82 | ; |
| 83 | 83 | |
| 84 | - foreach($this->authHeaders as $header => $value){ |
|
| 84 | + foreach ($this->authHeaders as $header => $value) { |
|
| 85 | 85 | $request = $request->withAddedHeader($header, $value); |
| 86 | 86 | } |
| 87 | 87 | |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * @method \Psr\Http\Message\ResponseInterface me() |
| 21 | 21 | * @method \Psr\Http\Message\ResponseInterface user(string $username) |
| 22 | 22 | */ |
| 23 | -class Mixcloud extends OAuth2Provider{ |
|
| 23 | +class Mixcloud extends OAuth2Provider { |
|
| 24 | 24 | |
| 25 | 25 | protected $apiURL = 'https://api.mixcloud.com'; |
| 26 | 26 | protected $authURL = 'https://www.mixcloud.com/oauth/authorize'; |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | * |
| 21 | 21 | * note: a missing slash at the end of the path will end up in a HTTP/301 |
| 22 | 22 | */ |
| 23 | -class MixcloudEndpoints extends EndpointMap{ |
|
| 23 | +class MixcloudEndpoints extends EndpointMap { |
|
| 24 | 24 | |
| 25 | 25 | protected $me = [ |
| 26 | 26 | 'path' => '/me/', |
@@ -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 $me = [ |
| 23 | 23 | 'path' => '/accounts', |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | * |
| 25 | 25 | * Note: the endpoints are ordered by the api docs (against any logical pattern) |
| 26 | 26 | */ |
| 27 | -class DiscogsEndpoints extends EndpointMap{ |
|
| 27 | +class DiscogsEndpoints extends EndpointMap { |
|
| 28 | 28 | |
| 29 | 29 | /** |
| 30 | 30 | * Database |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | * @method \Psr\Http\Message\ResponseInterface wantlistRemove(string $username, string $release_id) |
| 71 | 71 | * @method \Psr\Http\Message\ResponseInterface wantlistUpdate(string $username, string $release_id, array $body = ['notes', 'rating']) |
| 72 | 72 | */ |
| 73 | -class Discogs extends OAuth1Provider{ |
|
| 73 | +class Discogs extends OAuth1Provider { |
|
| 74 | 74 | |
| 75 | 75 | protected $apiURL = 'https://api.discogs.com'; |
| 76 | 76 | protected $requestTokenURL = 'https://api.discogs.com/oauth/request_token'; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @link https://developer.foursquare.com/docs |
| 19 | 19 | */ |
| 20 | -class FoursquareEndpoints extends EndpointMap{ |
|
| 20 | +class FoursquareEndpoints extends EndpointMap { |
|
| 21 | 21 | |
| 22 | 22 | protected $me = [ |
| 23 | 23 | 'path' => '/users/self', |