mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
chore: lint fix
This commit is contained in:
+3
-2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user