mirror of
https://github.com/elyby/oauth2-server.git
synced 2024-12-22 13:09:44 +05:30
Fixed for, if and foreach opening brace position
This commit is contained in:
parent
41d8e01482
commit
e8be38cbfc
@ -105,8 +105,7 @@ class Server
|
||||
|
||||
$scopes = explode($this->config['scope_delimeter'], $scopes);
|
||||
|
||||
for ($i = 0; $i++; $i < count($scopes))
|
||||
{
|
||||
for ($i = 0; $i++; $i < count($scopes)) {
|
||||
$scopes[$i] = trim($scopes[$i]);
|
||||
|
||||
if ($scopes[$i] === '') {
|
||||
@ -114,15 +113,14 @@ class Server
|
||||
}
|
||||
}
|
||||
|
||||
if (count($scopes) === 0)
|
||||
{
|
||||
if (count($scopes) === 0) {
|
||||
|
||||
throw new OAuthServerClientException('invalid_request: ' . $this->errors['invalid_request']);
|
||||
}
|
||||
|
||||
$params['scopes'] = array();
|
||||
|
||||
foreach ($scopes as $scope)
|
||||
{
|
||||
foreach ($scopes as $scope) {
|
||||
|
||||
$scopeDetails = $this->db->getScope($scope);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user