Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
12 | public function getConfigTreeBuilder(): TreeBuilder |
||
13 | { |
||
14 | $treeBuilder = new TreeBuilder('happyr_annotation_warmer'); |
||
15 | if (\method_exists(TreeBuilder::class, 'getRootNode')) { |
||
16 | $rootNode = $treeBuilder->getRootNode(); |
||
17 | } else { |
||
18 | $rootNode = $treeBuilder->root('happyr_annotation_warmer'); |
||
|
|||
19 | } |
||
20 | |||
21 | $rootNode |
||
22 | ->children() |
||
23 | ->arrayNode('paths')->info('Paths to where we should look for annotations') |
||
24 | ->prototype('scalar')->end() |
||
25 | ->end() |
||
26 | ->end() |
||
27 | ; |
||
28 | |||
29 | return $treeBuilder; |
||
30 | } |
||
31 | } |
||
32 |
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.