1 | <?php |
||
9 | class Provider extends AbstractProvider implements ProviderInterface |
||
10 | { |
||
11 | /** |
||
12 | * Unique Provider Identifier. |
||
13 | */ |
||
14 | const IDENTIFIER = 'HITBOX'; |
||
15 | |||
16 | /** |
||
17 | * {@inheritdoc} |
||
18 | */ |
||
19 | protected $stateless = true; |
||
20 | |||
21 | /** |
||
22 | * {@inheritdoc} |
||
23 | */ |
||
24 | protected function getAuthUrl($state) |
||
28 | |||
29 | /** |
||
30 | * {@inheritdoc} |
||
31 | */ |
||
32 | protected function getTokenUrl() |
||
36 | |||
37 | /** |
||
38 | * {@inheritdoc} |
||
39 | */ |
||
40 | protected function getUserByToken($token) |
||
50 | |||
51 | protected function getUserNameByToken($token) |
||
57 | |||
58 | /** |
||
59 | * {@inheritdoc} |
||
60 | */ |
||
61 | protected function mapUserToObject(array $user) |
||
70 | |||
71 | /** |
||
72 | * {@inheritdoc} |
||
73 | */ |
||
74 | protected function getCodeFields($state = null) |
||
78 | |||
79 | /** |
||
80 | * {@inheritdoc} |
||
81 | */ |
||
82 | protected function getCode() |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | protected function getTokenFields($code) |
||
98 | |||
99 | /** |
||
100 | * {@inheritdoc} |
||
101 | */ |
||
102 | public function user() |
||
110 | |||
111 | protected function getAccessToken() |
||
115 | } |
||
116 |
This check looks at variables that 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.