1 | <?php |
||
12 | abstract class AbstractProvider extends BaseProvider implements ProviderInterface |
||
13 | { |
||
14 | use ConfigTrait; |
||
15 | |||
16 | /** |
||
17 | * @var array |
||
18 | 1 | */ |
|
19 | protected $credentialsResponseBody; |
||
20 | 1 | ||
21 | public static function serviceContainerKey($providerName) |
||
25 | 7 | ||
26 | /** |
||
27 | * @return \SocialiteProviders\Manager\OAuth2\User |
||
28 | */ |
||
29 | public function user() |
||
47 | |||
48 | 5 | /** |
|
49 | 2 | * Get the access token for the given code. |
|
50 | * |
||
51 | * @param string $code |
||
52 | 3 | * |
|
53 | 3 | * @return string |
|
54 | 3 | */ |
|
55 | public function getAccessToken($code) |
||
68 | |||
69 | /** |
||
70 | * Get the access token from the token response body. |
||
71 | * |
||
72 | 3 | * @param string $body |
|
73 | * @return string |
||
74 | 3 | */ |
|
75 | protected function parseAccessToken($body) |
||
79 | } |
||
80 |
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.