refactor change self:: to static::
This commit is contained in:
parent
cc92d67c05
commit
0393ab8b89
4 changed files with 36 additions and 20 deletions
|
|
@ -42,7 +42,7 @@ class Auth
|
|||
{
|
||||
$query_string = http_build_query([
|
||||
'client_id' => $_ENV['DISCORD_CLIENT_ID'],
|
||||
'redirect_uri' => self::DISCORD_REDIRECT_URI,
|
||||
'redirect_uri' => static::DISCORD_REDIRECT_URI,
|
||||
'response_type' => 'code',
|
||||
'scope' => 'identify',
|
||||
]);
|
||||
|
|
@ -60,7 +60,7 @@ class Auth
|
|||
'client_secret' => $_ENV['DISCORD_CLIENT_SECRET'],
|
||||
'grant_type' => 'authorization_code',
|
||||
'code' => $code,
|
||||
'redirect_uri' => self::DISCORD_REDIRECT_URI,
|
||||
'redirect_uri' => static::DISCORD_REDIRECT_URI,
|
||||
]),
|
||||
],
|
||||
])));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue