Conditions | 2 |
Paths | 2 |
Total Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Tests | 9 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | 3 | public function getConfigTreeBuilder() |
|
20 | { |
||
21 | 3 | $treeBuilder = new TreeBuilder('freshcells_soap_client'); |
|
22 | 3 | if (method_exists($treeBuilder, 'getRootNode')) { |
|
23 | 1 | $rootNode = $treeBuilder->getRootNode(); |
|
24 | } else { |
||
25 | // BC layer for symfony/config < 4.2 |
||
26 | 2 | $rootNode = $treeBuilder->root('freshcells_soap_client'); |
|
|
|||
27 | } |
||
28 | |||
29 | 3 | $rootNode->children() |
|
30 | 3 | ->scalarNode('logger')->defaultFalse()->end() |
|
31 | 3 | ->arrayNode('anonymize_logs') |
|
32 | ->children() |
||
33 | 3 | ->arrayNode('elements') |
|
34 | ->scalarPrototype()->end() |
||
35 | ->end() |
||
36 | ->arrayNode('attributes') |
||
37 | ->scalarPrototype()->end() |
||
38 | ->end() |
||
39 | ->end() |
||
40 | ->end() |
||
41 | ->scalarNode('enable_profiler')->defaultTrue()->end(); |
||
42 | |||
43 | return $treeBuilder; |
||
44 | } |
||
45 | } |
||
46 |
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.