1 | <?php |
||
16 | class YConnect extends AbstractProvider |
||
17 | { |
||
18 | const API_DOMAIN = 'https://auth.login.yahoo.co.jp'; |
||
19 | |||
20 | const USERINFO_DOMAIN = 'https://userinfo.yahooapis.jp'; |
||
21 | |||
22 | public $version = 'v1'; |
||
23 | |||
24 | /** |
||
25 | * {@inheritdoc} |
||
26 | */ |
||
27 | 4 | public function getBaseAuthorizationUrl() |
|
31 | |||
32 | protected function getAuthorizationHeaders($token = null) |
||
39 | |||
40 | /** |
||
41 | * {@inheritdoc} |
||
42 | */ |
||
43 | 4 | public function getBaseAccessTokenUrl(array $params) |
|
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | 2 | protected function getAccessTokenOptions(array $params) |
|
62 | |||
63 | /** |
||
64 | * {@inheritdoc} |
||
65 | */ |
||
66 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
||
70 | |||
71 | |||
72 | public function getAuthenticatedRequest($method, $url, $token, array $options = []) |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | 4 | protected function getDefaultScopes() |
|
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | 2 | protected function checkResponse(ResponseInterface $response, $data) |
|
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | protected function createResourceOwner(array $response, AccessToken $token) |
||
106 | |||
107 | 8 | protected function getApiBaseUrl() |
|
111 | |||
112 | protected function getUserInfoBaseUrl() |
||
116 | } |
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.