1 | <?php |
||
8 | trait ClientCredentialsOnlyTrait |
||
9 | { |
||
10 | /** |
||
11 | * Get authorization url to begin OAuth flow |
||
12 | * |
||
13 | * @return string |
||
14 | */ |
||
15 | 4 | public function getBaseAuthorizationUrl() |
|
19 | |||
20 | /** |
||
21 | * Get the default scopes used by this provider. |
||
22 | * |
||
23 | * This should not be a complete list of all scopes, but the minimum |
||
24 | * required for the provider user interface! |
||
25 | * |
||
26 | * @return array |
||
27 | * @codeCoverageIgnore |
||
28 | */ |
||
29 | protected function getDefaultScopes() |
||
33 | |||
34 | /** |
||
35 | * Get provider url to fetch user details |
||
36 | * |
||
37 | * @param AccessToken $token |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | 2 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
45 | |||
46 | /** |
||
47 | * Generate a user object from a successful user details request. |
||
48 | * |
||
49 | * @param object $response |
||
50 | * @param AccessToken $token |
||
51 | * @return YelpResourceOwner |
||
52 | * @codeCoverageIgnore |
||
53 | */ |
||
54 | protected function createResourceOwner(array $response, AccessToken $token) |
||
58 | } |
||
59 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.