Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 13 |
Lines | 16 |
Ratio | 100 % |
Changes | 0 |
1 | <?php |
||
9 | public function buildConfiguration(NodeBuilder $node) |
||
10 | { |
||
11 | // @formatter:off |
||
12 | $node |
||
13 | ->scalarNode('provider_class') |
||
14 | ->info('The class name of your provider class (e.g. the one that extends AbstractProvider)') |
||
15 | ->defaultValue('Sludio\HelperBundle\Oauth\Client\Provider\Custom\Custom') |
||
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 | ->arrayNode('provider_options') |
||
22 | ->info('Other options to pass to your provider\'s constructor') |
||
23 | ->prototype('variable')->end() |
||
24 | ->end() |
||
25 | ; |
||
52 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.