@@ -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 $userProfile = [ |
| 22 | 22 | 'path' => '/user/profile', |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | |
| 17 | 17 | namespace chillerlan\OAuth\Providers\Amazon; |
| 18 | 18 | |
| 19 | -use chillerlan\OAuth\Core\{CSRFToken, OAuth2Provider, TokenExpires, TokenRefresh,}; |
|
| 19 | +use chillerlan\OAuth\Core\{CSRFToken, OAuth2Provider, TokenExpires, TokenRefresh, }; |
|
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | 22 | * @method \Psr\Http\Message\ResponseInterface userProfile() |
@@ -116,7 +116,7 @@ |
||
| 116 | 116 | public function setInstance(string $instance):Mastodon{ |
| 117 | 117 | $instance = parse_url($instance); |
| 118 | 118 | |
| 119 | - if(!isset($instance['scheme']) || !isset($instance['host'])){ |
|
| 119 | + if (!isset($instance['scheme']) || !isset($instance['host'])) { |
|
| 120 | 120 | throw new OAuthException('invalid instance URL'); |
| 121 | 121 | } |
| 122 | 122 | |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @link https://github.com/tootsuite/documentation/blob/master/Using-the-API/API.md |
| 19 | 19 | */ |
| 20 | -class MastodonEndpoints extends EndpointMap{ |
|
| 20 | +class MastodonEndpoints extends EndpointMap { |
|
| 21 | 21 | |
| 22 | 22 | protected $getCurrentUser = [ |
| 23 | 23 | 'path' => '/v1/accounts/verify_credentials', |
@@ -45,7 +45,7 @@ |
||
| 45 | 45 | * @method \Psr\Http\Message\ResponseInterface updateDiscount(string $account_id, string $discount_id, array $body = ['type', 'name', 'code', 'active_at', 'expires_at', 'requirement_type', 'expiration_type', 'reward_type', 'application_type', 'percent_discount', 'flat_rate_discount', 'use_limit', 'minimum_cart_total', 'minimum_cart_quantity']) |
| 46 | 46 | * @method \Psr\Http\Message\ResponseInterface updateOrder(string $account_id, string $order_id, array $body = ['id', 'type', 'customer_first_name', 'customer_last_name', 'customer_email', 'shipping_address_1', 'shipping_address_2', 'shipping_city', 'shipping_state', 'shipping_zip', 'shipping_country_id', 'shipping_status']) |
| 47 | 47 | */ |
| 48 | -class BigCartel extends OAuth2Provider implements CSRFToken{ |
|
| 48 | +class BigCartel extends OAuth2Provider implements CSRFToken { |
|
| 49 | 49 | |
| 50 | 50 | protected $apiURL = 'https://api.bigcartel.com/v1'; |
| 51 | 51 | protected $authURL = 'https://my.bigcartel.com/oauth/authorize'; |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | /** |
| 18 | 18 | * @link https://developers.bigcartel.com/api/v1 |
| 19 | 19 | */ |
| 20 | -class BigCartelEndpoints extends EndpointMap{ |
|
| 20 | +class BigCartelEndpoints extends EndpointMap { |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Account |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | |
| 18 | 18 | use chillerlan\HTTP\MagicAPI\EndpointMap; |
| 19 | 19 | |
| 20 | -class MusicBrainzEndpoints extends EndpointMap{ |
|
| 20 | +class MusicBrainzEndpoints extends EndpointMap { |
|
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * oauth2 |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * @link http://developer.mailchimp.com/documentation/mailchimp/reference/overview/ |
| 21 | 21 | */ |
| 22 | -class MailChimpEndpoints extends EndpointMap{ |
|
| 22 | +class MailChimpEndpoints extends EndpointMap { |
|
| 23 | 23 | |
| 24 | 24 | /************ |
| 25 | 25 | * API Root * |
@@ -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 | |