feat: renamed adapter variable to scope

This commit is contained in:
Christy Jacob 2020-01-18 08:27:02 +05:30
parent 6bc1668877
commit 9a5b0098a6

View file

@ -17,7 +17,7 @@ class Bitbucket extends OAuth
/**
* @var array
*/
protected $requiredScope = [];
protected $scope = [];
/**
* @return string
@ -32,10 +32,6 @@ class Bitbucket extends OAuth
*/
public function getLoginURL(): string
{
foreach ($this->requiredScope as $item) {
$this->addScope($item);
}
return 'https://bitbucket.org/site/oauth2/authorize?'.http_build_query([
'response_type' => 'code',
'client_id' => $this->appID,