1 | <?php |
||
13 | class StackExchange extends AbstractProvider |
||
14 | { |
||
15 | use BearerAuthorizationTrait; |
||
16 | |||
17 | /** |
||
18 | * @inheritDoc |
||
19 | */ |
||
20 | 1 | public function getBaseAuthorizationUrl() |
|
24 | |||
25 | /** |
||
26 | * @inheritDoc |
||
27 | */ |
||
28 | 1 | public function getBaseAccessTokenUrl(array $params) |
|
37 | |||
38 | /** |
||
39 | * @inheritDoc |
||
40 | */ |
||
41 | 1 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
50 | |||
51 | /** |
||
52 | * @var string |
||
53 | */ |
||
54 | protected $urlApi = 'https://api.stackexchange.com/2.2/'; |
||
55 | |||
56 | /** |
||
57 | * @var string |
||
58 | */ |
||
59 | protected $urlAuthorize = 'https://stackexchange.com/oauth'; |
||
60 | |||
61 | /** |
||
62 | * @var string |
||
63 | */ |
||
64 | protected $urlAccessToken = 'https://stackexchange.com/oauth/access_token'; |
||
65 | |||
66 | /** |
||
67 | * @var string |
||
68 | */ |
||
69 | protected $scope; |
||
70 | |||
71 | /** |
||
72 | * @var string |
||
73 | */ |
||
74 | protected $key; |
||
75 | |||
76 | /** |
||
77 | * @var string |
||
78 | */ |
||
79 | protected $site = 'stackoverflow'; |
||
80 | |||
81 | /** |
||
82 | * @var string |
||
83 | */ |
||
84 | protected $state; |
||
85 | |||
86 | /** |
||
87 | * @var string |
||
88 | */ |
||
89 | protected $redirectUri; |
||
90 | |||
91 | /** |
||
92 | * @inheritDoc |
||
93 | */ |
||
94 | 1 | protected function getDefaultScopes() |
|
98 | |||
99 | /** |
||
100 | * @inheritDoc |
||
101 | */ |
||
102 | 1 | protected function getAuthorizationParameters(array $options) |
|
121 | |||
122 | /** |
||
123 | * @inheritDoc |
||
124 | */ |
||
125 | 1 | protected function parseResponse(ResponseInterface $response) |
|
138 | |||
139 | /** |
||
140 | * @inheritDoc |
||
141 | */ |
||
142 | 1 | protected function checkResponse(ResponseInterface $response, $data) |
|
148 | |||
149 | /** |
||
150 | * @inheritDoc |
||
151 | */ |
||
152 | 1 | protected function createResourceOwner(array $response, AccessToken $token) |
|
156 | } |
||
157 |
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.