| Total Complexity | 6 |
| Total Lines | 58 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class GitLab extends \SocialConnect\OAuth2\AbstractProvider |
||
| 15 | { |
||
| 16 | const NAME = 'gitlab'; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * {@inheritdoc} |
||
| 20 | */ |
||
| 21 | public function getBaseUri() |
||
| 22 | { |
||
| 23 | return 'https://gitlab.com/api/v3/'; |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * {@inheritdoc} |
||
| 28 | */ |
||
| 29 | public function getAuthorizeUri() |
||
| 30 | { |
||
| 31 | return 'https://gitlab.com/oauth/authorize'; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * {@inheritdoc} |
||
| 36 | */ |
||
| 37 | public function getRequestTokenUri() |
||
| 38 | { |
||
| 39 | return 'https://gitlab.com/oauth/token'; |
||
| 40 | } |
||
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | public function getName() |
||
| 46 | { |
||
| 47 | return self::NAME; |
||
| 48 | } |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @return string |
||
| 52 | */ |
||
| 53 | public function getScopeInline() |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * {@inheritdoc} |
||
| 60 | */ |
||
| 61 | public function getIdentity(AccessTokenInterface $accessToken) |
||
| 72 | } |
||
| 73 | } |
||
| 74 |