1 | <?php |
||
10 | class ConfigRetriever implements ConfigRetrieverInterface |
||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $providerName; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $providerIdentifier; |
||
21 | |||
22 | /** |
||
23 | * @var array |
||
24 | */ |
||
25 | protected $servicesArray; |
||
26 | |||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | protected $additionalConfigKeys; |
||
31 | |||
32 | /** |
||
33 | 2 | * @param string $providerName |
|
34 | * @param array $additionalConfigKeys |
||
35 | 2 | * |
|
36 | * @return \SocialiteProviders\Manager\Contracts\ConfigInterface |
||
37 | 2 | */ |
|
38 | 2 | public function fromServices($providerName, array $additionalConfigKeys = []) |
|
54 | |||
55 | 2 | /** |
|
56 | 2 | * @param array $configKeys |
|
57 | * @param \Closure $keyRetrievalClosure |
||
58 | 1 | * |
|
59 | 1 | * @return array |
|
60 | 1 | */ |
|
61 | 1 | protected function getConfigItems(array $configKeys, Closure $keyRetrievalClosure) |
|
65 | |||
66 | /** |
||
67 | * @param array $keys |
||
68 | * @param \Closure $keyRetrievalClosure |
||
69 | * |
||
70 | * @return array |
||
71 | */ |
||
72 | protected function retrieveItemsFromConfig(array $keys, Closure $keyRetrievalClosure) |
||
82 | |||
83 | /** |
||
84 | * @param string $key |
||
85 | * |
||
86 | * @return string|null |
||
87 | * |
||
88 | 2 | * @throws \SocialiteProviders\Manager\Exception\MissingConfigException |
|
89 | */ |
||
90 | 2 | protected function getFromServices($key) |
|
106 | |||
107 | 1 | /** |
|
108 | * @param string $providerName |
||
109 | * |
||
110 | * @return array |
||
111 | 1 | * |
|
112 | * @throws \SocialiteProviders\Manager\Exception\MissingConfigException |
||
113 | */ |
||
114 | protected function getConfigFromServicesArray($providerName) |
||
133 | |||
134 | /** |
||
135 | * @param string $key |
||
136 | * |
||
137 | * @return bool |
||
138 | 2 | */ |
|
139 | protected function isAdditionalConfig($key) |
||
143 | } |
||
144 |
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.