diff --git a/src/Provider/MailChimp.php b/src/Provider/MailChimp.php index be08110..cca1cf1 100644 --- a/src/Provider/MailChimp.php +++ b/src/Provider/MailChimp.php @@ -1,91 +1,91 @@ -getStatusCode() >= 400) { - throw new IdentityProviderException( - $data['error'] ?: $response->getReasonPhrase(), - $response->getStatusCode(), - $response - ); - } - } - - /** - * Generates a resource owner object from a successful resource owner - * details request. - * - * @param array $response - * @param AccessToken $token - * @return ResourceOwnerInterface - */ - protected function createResourceOwner(array $response, AccessToken $token) - { - return new MailChimpResourceOwner($response); - } -} \ No newline at end of file +getStatusCode() >= 400) { + throw new IdentityProviderException( + $data['error'] ?: $response->getReasonPhrase(), + $response->getStatusCode(), + $response + ); + } + } + + /** + * Generates a resource owner object from a successful resource owner + * details request. + * + * @param array $response + * @param AccessToken $token + * @return ResourceOwnerInterface + */ + protected function createResourceOwner(array $response, AccessToken $token) + { + return new MailChimpResourceOwner($response); + } +} diff --git a/src/Provider/MailChimpResourceOwner.php b/src/Provider/MailChimpResourceOwner.php index 98a0d90..0c8130f 100644 --- a/src/Provider/MailChimpResourceOwner.php +++ b/src/Provider/MailChimpResourceOwner.php @@ -1,74 +1,74 @@ -response = $response; - } - - /** - * Returns empty id as MailChimp doesn't respond with an identifier. - * - * @return string - */ - public function getId() - { - return ''; - } - - /** - * Return all of the owner details available as an array. - * - * @return array - */ - public function toArray() - { - return $this->response; - } - - /** - * Get the data center identifier. - * - * @return array - */ - public function getDC() - { - return $this->response['dc']; - } - - /** - * Get the api endpoint. - * - * @return array - */ - public function getAPIEndpoint() - { - return $this->response['api_endpoint']; - } - - /** - * Get the login url. - * - * @return array - */ - public function getLoginURL() - { - return $this->response['login_url']; - } -} \ No newline at end of file +response = $response; + } + + /** + * Returns empty id as MailChimp doesn't respond with an identifier. + * + * @return string + */ + public function getId() + { + return ''; + } + + /** + * Return all of the owner details available as an array. + * + * @return array + */ + public function toArray() + { + return $this->response; + } + + /** + * Get the data center identifier. + * + * @return array + */ + public function getDC() + { + return $this->response['dc']; + } + + /** + * Get the api endpoint. + * + * @return array + */ + public function getAPIEndpoint() + { + return $this->response['api_endpoint']; + } + + /** + * Get the login url. + * + * @return array + */ + public function getLoginURL() + { + return $this->response['login_url']; + } +}