| Conditions | 2 |
| Paths | 2 |
| Total Lines | 28 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 18 |
| CRAP Score | 2.0005 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 2 | public function getConfigTreeBuilder() |
|
| 15 | { |
||
| 16 | 2 | $builder = new TreeBuilder('sb_json_request'); |
|
| 17 | |||
| 18 | 2 | if (\method_exists($builder, 'getRootNode')) { |
|
| 19 | 2 | $rootNode = $builder->getRootNode(); |
|
| 20 | } else { |
||
| 21 | // BC layer for symfony/config 4.1 and older |
||
| 22 | $rootNode = $builder->root('maker'); |
||
|
|
|||
| 23 | } |
||
| 24 | |||
| 25 | $rootNode |
||
| 26 | 2 | ->children() |
|
| 27 | 2 | ->arrayNode('listener') |
|
| 28 | 2 | ->addDefaultsIfNotSet() |
|
| 29 | 2 | ->children() |
|
| 30 | 2 | ->scalarNode('request_transformer') |
|
| 31 | 2 | ->defaultValue(RequestTransformerListener::class) |
|
| 32 | 2 | ->end() |
|
| 33 | 2 | ->scalarNode('priority') |
|
| 34 | 2 | ->defaultValue(100) |
|
| 35 | 2 | ->end() |
|
| 36 | 2 | ->end() |
|
| 37 | 2 | ->end() |
|
| 38 | 2 | ->end(); |
|
| 39 | |||
| 40 | 2 | return $builder; |
|
| 41 | } |
||
| 42 | } |
||
| 43 |
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.