| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 2.0017 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | 5 | public function getConfigTreeBuilder(): TreeBuilder |
|
| 18 | { |
||
| 19 | 5 | $tree = new TreeBuilder('sil_route_security'); |
|
| 20 | // Keep compatibility with symfony/config < 4.2 |
||
| 21 | 5 | if (false === method_exists($tree, 'getRootNode')) { |
|
| 22 | $root = $tree->root('sil_route_security'); |
||
|
|
|||
| 23 | } else { |
||
| 24 | 5 | $root = $tree->getRootNode(); |
|
| 25 | } |
||
| 26 | |||
| 27 | $root |
||
| 28 | 5 | ->children() |
|
| 29 | 5 | ->booleanNode('enable_access_control')->defaultFalse()->end() |
|
| 30 | 5 | ->scalarNode('secured_routes_format')->defaultNull()->end() |
|
| 31 | 5 | ->scalarNode('ignored_routes_format')->defaultNull()->end() |
|
| 32 | 5 | ->arrayNode('ignored_routes')->prototype('scalar')->end()->end() |
|
| 33 | 5 | ->arrayNode('secured_routes')->prototype('scalar')->end()->end() |
|
| 34 | 5 | ->scalarNode('naming_strategy')->defaultNull()->end() |
|
| 35 | ; |
||
| 36 | |||
| 37 | 5 | return $tree; |
|
| 38 | } |
||
| 40 |
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.