| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 27 | public function getConfigTreeBuilder() |
||
| 28 | { |
||
| 29 | $treeBuilder = new TreeBuilder('mongo_db_migrations', 'array'); |
||
| 30 | $rootNode = method_exists(TreeBuilder::class, 'getRootNode') ? $treeBuilder->getRootNode() : $treeBuilder->root('mongo_db_migrations', 'array'); |
||
|
|
|||
| 31 | |||
| 32 | $rootNode |
||
| 33 | ->children() |
||
| 34 | ->scalarNode('collection_name')->defaultValue('migration_versions')->cannotBeEmpty()->end() |
||
| 35 | ->scalarNode('database_name')->cannotBeEmpty()->end() |
||
| 36 | ->scalarNode('dir_name')->defaultValue('%kernel.root_dir%/MongoDBMigrations')->cannotBeEmpty()->end() |
||
| 37 | ->scalarNode('name')->defaultValue('Application MongoDB Migrations')->end() |
||
| 38 | ->scalarNode('namespace')->defaultValue('Application\MongoDBMigrations')->cannotBeEmpty()->end() |
||
| 39 | ->scalarNode('script_dir_name')->end() |
||
| 40 | ->end() |
||
| 41 | ; |
||
| 42 | |||
| 43 | return $treeBuilder; |
||
| 44 | } |
||
| 46 |
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.