| Total Complexity | 3 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class WordPress extends OAuth2Provider implements CSRFToken{ |
||
| 22 | |||
| 23 | public const SCOPE_AUTH = 'auth'; |
||
| 24 | public const SCOPE_GLOBAL = 'global'; |
||
| 25 | |||
| 26 | protected string $authURL = 'https://public-api.wordpress.com/oauth2/authorize'; |
||
| 27 | protected string $accessTokenURL = 'https://public-api.wordpress.com/oauth2/token'; |
||
| 28 | protected string $apiURL = 'https://public-api.wordpress.com/rest'; |
||
| 29 | protected ?string $userRevokeURL = 'https://wordpress.com/me/security/connected-applications'; |
||
| 30 | protected ?string $apiDocs = 'https://developer.wordpress.com/docs/api/'; |
||
| 31 | protected ?string $applicationURL = 'https://developer.wordpress.com/apps/'; |
||
| 32 | |||
| 33 | protected array $defaultScopes = [ |
||
| 34 | self::SCOPE_GLOBAL, |
||
| 35 | ]; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @inheritDoc |
||
| 39 | */ |
||
| 40 | public function me():ResponseInterface{ |
||
| 58 |