| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2.0054 |
| 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 | 3 | $rootNode = $treeBuilder->getRootNode(); |
|
| 24 | } else { |
||
| 25 | // BC layer for symfony/config < 4.2 |
||
| 26 | $rootNode = $treeBuilder->root('freshcells_soap_client'); |
||
|
|
|||
| 27 | } |
||
| 28 | |||
| 29 | 3 | $rootNode->children() |
|
| 30 | 3 | ->scalarNode('logger')->defaultFalse()->end() |
|
| 31 | 3 | ->scalarNode('enable_profiler')->defaultTrue()->end(); |
|
| 32 | |||
| 33 | 3 | return $treeBuilder; |
|
| 34 | } |
||
| 35 | } |
||
| 36 |
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.