@@ -21,7 +21,7 @@ |
||
| 21 | 21 | * @method \Psr\Http\Message\ResponseInterface getUser(string $username) |
| 22 | 22 | * @method \Psr\Http\Message\ResponseInterface me() |
| 23 | 23 | */ |
| 24 | -class GitHub extends OAuth2Provider implements CSRFToken{ |
|
| 24 | +class GitHub extends OAuth2Provider implements CSRFToken { |
|
| 25 | 25 | |
| 26 | 26 | const SCOPE_USER = 'user'; |
| 27 | 27 | const SCOPE_USER_EMAIL = 'user:email'; |
@@ -243,7 +243,7 @@ |
||
| 243 | 243 | * @method \Psr\Http\Message\ResponseInterface urlsLookupGroup(array $params = ['url']) |
| 244 | 244 | * @method \Psr\Http\Message\ResponseInterface urlsLookupUser(array $params = ['url']) |
| 245 | 245 | */ |
| 246 | -class Flickr extends OAuth1Provider{ |
|
| 246 | +class Flickr extends OAuth1Provider { |
|
| 247 | 247 | |
| 248 | 248 | public const PERM_READ = 'read'; |
| 249 | 249 | public const PERM_WRITE = 'write'; |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | * @method \Psr\Http\Message\ResponseInterface ping() |
| 28 | 28 | * @method \Psr\Http\Message\ResponseInterface root(array $params = ['fields', 'exclude_fields']) |
| 29 | 29 | */ |
| 30 | -class MailChimp extends OAuth2Provider implements CSRFToken{ |
|
| 30 | +class MailChimp extends OAuth2Provider implements CSRFToken { |
|
| 31 | 31 | |
| 32 | 32 | protected const API_BASE = 'https://%s.api.mailchimp.com/3.0'; |
| 33 | 33 | protected const METADATA_ENDPOINT = 'https://login.mailchimp.com/oauth2/metadata'; |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | $token = $token ?? $this->storage->getAccessToken($this->serviceName); |
| 51 | 51 | |
| 52 | - if(!$token instanceof AccessToken){ |
|
| 52 | + if (!$token instanceof AccessToken) { |
|
| 53 | 53 | throw new OAuthException('invalid token'); // @codeCoverageIgnore |
| 54 | 54 | } |
| 55 | 55 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | |
| 61 | 61 | $response = $this->http->sendRequest($request); |
| 62 | 62 | |
| 63 | - if($response->getStatusCode() !== 200){ |
|
| 63 | + if ($response->getStatusCode() !== 200) { |
|
| 64 | 64 | throw new OAuthException('metadata response error'); // @codeCoverageIgnore |
| 65 | 65 | } |
| 66 | 66 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @link https://dev.npr.org/api/ |
| 19 | 19 | */ |
| 20 | -class NPROneEndpoints extends EndpointMap{ |
|
| 20 | +class NPROneEndpoints extends EndpointMap { |
|
| 21 | 21 | |
| 22 | 22 | protected $API_BASE = 'https://'; // i hate this so much |
| 23 | 23 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | */ |
| 19 | -class ImgurEndpoints extends EndpointMap{ |
|
| 19 | +class ImgurEndpoints extends EndpointMap { |
|
| 20 | 20 | |
| 21 | 21 | protected $me = [ |
| 22 | 22 | 'path' => '/3/account/me', |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @link https://docs.gitlab.com/ee/api/README.html |
| 19 | 19 | */ |
| 20 | -class GitLabV4Endpoints extends EndpointMap{ |
|
| 20 | +class GitLabV4Endpoints extends EndpointMap { |
|
| 21 | 21 | |
| 22 | 22 | protected $API_BASE = '/v4'; |
| 23 | 23 | |
@@ -132,7 +132,7 @@ |
||
| 132 | 132 | * @method \Psr\Http\Message\ResponseInterface usersSuggestionsSlugMembers(string $slug, array $params = ['lang']) |
| 133 | 133 | * @method \Psr\Http\Message\ResponseInterface verifyCredentials(array $params = ['include_entities', 'skip_status']) |
| 134 | 134 | */ |
| 135 | -class TwitterCC extends OAuth2Provider implements ClientCredentials{ |
|
| 135 | +class TwitterCC extends OAuth2Provider implements ClientCredentials { |
|
| 136 | 136 | |
| 137 | 137 | protected const AUTH_ERRMSG = 'TwitterCC only supports Client Credentials Grant, use the Twitter OAuth1 class for authentication instead.'; |
| 138 | 138 | |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | /** |
| 18 | 18 | */ |
| 19 | -class BitbucketEndpoints extends EndpointMap{ |
|
| 19 | +class BitbucketEndpoints extends EndpointMap { |
|
| 20 | 20 | |
| 21 | 21 | protected $API_BASE = '/2.0'; |
| 22 | 22 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @link https://developer.paypal.com/docs/api/identity/v1/ |
| 19 | 19 | */ |
| 20 | -class PayPalEndpoints extends EndpointMap{ |
|
| 20 | +class PayPalEndpoints extends EndpointMap { |
|
| 21 | 21 | |
| 22 | 22 | protected $me = [ |
| 23 | 23 | 'path' => '/v1/identity/oauth2/userinfo', |