1 | <?php |
||
11 | abstract class AbstractGuardian extends AbstractProvider |
||
12 | { |
||
13 | use BearerAuthorizationTrait; |
||
14 | |||
15 | /** |
||
16 | * @inheritdoc |
||
17 | */ |
||
18 | 6 | protected function getScopeSeparator() |
|
22 | |||
23 | /** |
||
24 | * @inheritdoc |
||
25 | */ |
||
26 | 6 | protected function getAuthorizationParameters(array $options) |
|
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | 12 | protected function getDefaultHeaders() |
|
45 | |||
46 | /** |
||
47 | * Returns the request body for requesting an access token. |
||
48 | * |
||
49 | * @param array $params |
||
50 | * @return string |
||
51 | */ |
||
52 | 12 | protected function getAccessTokenBody(array $params) |
|
56 | |||
57 | /** |
||
58 | * Builds request options used for requesting an access token. |
||
59 | * |
||
60 | * @param array $params |
||
61 | * @return array |
||
62 | */ |
||
63 | 12 | protected function getAccessTokenOptions(array $params) |
|
76 | |||
77 | /** |
||
78 | * @inheritdoc |
||
79 | */ |
||
80 | 12 | protected function checkResponse(ResponseInterface $response, $data) |
|
88 | |||
89 | /** |
||
90 | * @inheritdoc |
||
91 | */ |
||
92 | 3 | protected function createResourceOwner(array $response, AccessToken $token) |
|
96 | } |
||
97 |
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.