1 | <?php |
||
11 | class HubSpot extends AbstractProvider |
||
12 | { |
||
13 | use BearerAuthorizationTrait; |
||
14 | |||
15 | /** |
||
16 | * Domain |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | public $domain = 'https://app.hubspot.com'; |
||
21 | |||
22 | /** |
||
23 | * Api domain |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | public $apiDomain = 'https://api.hubapi.com'; |
||
28 | |||
29 | /** |
||
30 | * @var array |
||
31 | */ |
||
32 | protected $defaultScopes = []; |
||
33 | |||
34 | /** |
||
35 | * @inheritdoc |
||
36 | */ |
||
37 | 9 | public function getBaseAuthorizationUrl() |
|
41 | |||
42 | /** |
||
43 | * @inheritdoc |
||
44 | */ |
||
45 | 15 | public function getBaseAccessTokenUrl(array $params) |
|
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | 3 | public function getResourceOwnerDetailsUrl(AccessToken $token) |
|
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | 6 | protected function getDefaultScopes() |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 9 | protected function getScopeSeparator() |
|
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | 3 | protected function getAuthorizationHeaders($token = null) |
|
86 | |||
87 | /** |
||
88 | * @inheritdoc |
||
89 | */ |
||
90 | 12 | protected function checkResponse(ResponseInterface $response, $data) |
|
98 | |||
99 | /** |
||
100 | * @inheritdoc |
||
101 | */ |
||
102 | 3 | protected function createResourceOwner(array $response, AccessToken $token) |
|
106 | } |
||
107 |
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.