Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
45c9b28254
1 changed files with 4 additions and 2 deletions
|
@ -92,7 +92,8 @@ abstract class OAuth
|
|||
*
|
||||
* @return $this
|
||||
*/
|
||||
protected function addScope(string $scope):OAuth{
|
||||
protected function addScope(string $scope):OAuth
|
||||
{
|
||||
// Add a scope to the scopes array if it isn't already present
|
||||
if (!in_array($scope, $this->scopes)){
|
||||
$this->scopes[] = $scope;
|
||||
|
@ -103,7 +104,8 @@ abstract class OAuth
|
|||
/**
|
||||
* @return array
|
||||
*/
|
||||
protected function getScopes():array{
|
||||
protected function getScopes():array
|
||||
{
|
||||
return $this->scopes;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue