| Conditions | 2 |
| Paths | 2 |
| Total Lines | 21 |
| Code Lines | 14 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 2 | Features | 0 |
| 1 | <?php |
||
| 18 | public function getConfigTreeBuilder() |
||
| 19 | { |
||
| 20 | $treeBuilder = new TreeBuilder('alister_reserved_names'); |
||
| 21 | if (method_exists($treeBuilder, 'getRootNode')) { |
||
| 22 | $rootNode = $treeBuilder->getRootNode(); |
||
| 23 | } else { |
||
| 24 | // BC layer for symfony/config 4.1 and older |
||
| 25 | $rootNode = $treeBuilder->root('alister_reserved_names'); |
||
|
|
|||
| 26 | } |
||
| 27 | |||
| 28 | $rootNode |
||
| 29 | ->children() |
||
| 30 | //->scalarNode('clean_username')->defaultValue('xiidea.clean_username.class')->end() |
||
| 31 | ->variableNode('names') |
||
| 32 | ->defaultValue(['reservedname', 'woz']) |
||
| 33 | ->info('multiple names that will not be allowed as new users') |
||
| 34 | ->example('billgates, stevewoz') |
||
| 35 | ->end() |
||
| 36 | ->end(); |
||
| 37 | |||
| 38 | return $treeBuilder; |
||
| 39 | } |
||
| 41 |
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.