Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
7 | class FacebookProviderConfigurator implements ProviderConfiguratorInterface |
||
8 | { |
||
9 | public function buildConfiguration(NodeBuilder $node) |
||
10 | { |
||
11 | // @formatter:off |
||
12 | $node |
||
13 | ->scalarNode('graph_api_version') |
||
14 | ->isRequired() |
||
15 | ->defaultValue('v2.4') |
||
16 | ->end() |
||
17 | ->scalarNode('client_class') |
||
18 | ->info('If you have a sub-class of OAuth2Client you want to use, add it here') |
||
19 | ->defaultValue('Sludio\HelperBundle\Oauth\Client\OAuth2Client') |
||
20 | ->end() |
||
21 | ->scalarNode('redirect_route') |
||
22 | ->isRequired() |
||
23 | ->cannotBeEmpty() |
||
24 | ->end() |
||
25 | ->arrayNode('provider_options') |
||
26 | ->info('Other options to pass to your provider\'s constructor') |
||
27 | ->prototype('variable')->end() |
||
28 | ->end() |
||
29 | ; |
||
30 | // @formatter:on |
||
31 | } |
||
32 | |||
33 | public function getProviderClass(array $config) |
||
36 | } |
||
37 | |||
38 | public function getProviderOptions(array $config) |
||
39 | { |
||
40 | return array_merge([ |
||
41 | 'clientId' => $config['client_id'], |
||
42 | 'clientSecret' => $config['client_secret'], |
||
43 | 'graphApiVersion' => $config['graph_api_version'], |
||
44 | 'redirect_route' => $config['redirect_route'], |
||
45 | ], $config['provider_options']); |
||
46 | } |
||
47 | |||
48 | public function getProviderDisplayName() |
||
51 | } |
||
52 | |||
53 | public function getClientClass(array $config) |
||
58 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.