From d2ebafb23749b52c21c079d89d01b7d3787d44b2 Mon Sep 17 00:00:00 2001 From: Christy Jacob Date: Sun, 6 Oct 2019 18:28:01 +0530 Subject: [PATCH] chore: lint fix --- src/Auth/OAuth.php | 5 +++-- src/Auth/OAuth/Amazon.php | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Auth/OAuth.php b/src/Auth/OAuth.php index cbae4638e..a96ebb7a6 100644 --- a/src/Auth/OAuth.php +++ b/src/Auth/OAuth.php @@ -79,7 +79,7 @@ abstract class OAuth abstract public function getUserName(string $accessToken):string; // The parseState function was designed specifically for Amazon OAuth Adapter to override. - // The response from Amazon is html encoded and hence it needs to be html_decoded before + // The response from Amazon is html encoded and hence it needs to be html_decoded before // json_decoding /** @@ -87,7 +87,8 @@ abstract class OAuth * * @return json */ - public function parseState(string $state) { + public function parseState(string $state) + { return json_decode($state, true); } diff --git a/src/Auth/OAuth/Amazon.php b/src/Auth/OAuth/Amazon.php index 95744e9ba..71bb8aaee 100644 --- a/src/Auth/OAuth/Amazon.php +++ b/src/Auth/OAuth/Amazon.php @@ -28,7 +28,8 @@ class Amazon extends OAuth * * @return json */ - public function parseState(string $state) { + public function parseState(string $state) + { return json_decode(html_entity_decode($state), true); }