mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-16 18:19:47 +05:30
Style fixes
This commit is contained in:
parent
f4cdfa91c1
commit
f463eb9db1
@ -446,13 +446,15 @@ class AuthServer
|
|||||||
public function getParam($param = '', $method = 'get', $inputParams = array(), $default = null)
|
public function getParam($param = '', $method = 'get', $inputParams = array(), $default = null)
|
||||||
{
|
{
|
||||||
if (is_string($param)) {
|
if (is_string($param)) {
|
||||||
if(isset($inputParams[$param])) {
|
if (isset($inputParams[$param])) {
|
||||||
return $inputParams[$param];
|
return $inputParams[$param];
|
||||||
} elseif($param == 'client_id' && !is_null($client_id = $this->getRequest()->server('PHP_AUTH_USER'))) {
|
} elseif ($param === 'client_id' && ! is_null($client_id = $this->getRequest()->server('PHP_AUTH_USER'))) {
|
||||||
return $client_id;
|
return $client_id;
|
||||||
} elseif($param == 'client_secret' && !is_null($client_secret = $this->getRequest()->server('PHP_AUTH_PW'))) {
|
} elseif ($param === 'client_secret' && ! is_null($client_secret = $this->getRequest()->server('PHP_AUTH_PW'))) {
|
||||||
return $client_secret;
|
return $client_secret;
|
||||||
} else return $this->getRequest()->{$method}($param, $default);
|
} else {
|
||||||
|
return $this->getRequest()->{$method}($param, $default);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
$response = array();
|
$response = array();
|
||||||
foreach ($param as $p) {
|
foreach ($param as $p) {
|
||||||
|
Loading…
Reference in New Issue
Block a user