Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | public function getConfigTreeBuilder() |
||
19 | { |
||
20 | $treeBuilder = new TreeBuilder(); |
||
21 | $rootNode = $treeBuilder->root('ez_migration_bundle'); |
||
22 | |||
23 | // Here you should define the parameters that are allowed to |
||
24 | // configure your bundle. See the documentation linked above for |
||
25 | // more information on that topic. |
||
26 | |||
27 | /*$rootNode->children() |
||
|
|||
28 | ->scalarNode('version_directory')->defaultValue('MigrationVersion')->cannotBeEmpty()->end() |
||
29 | ->scalarNode('table_name')->defaultValue('kaliop_versions')->cannotBeEmpty()->end() |
||
30 | ->end();*/ |
||
31 | |||
32 | return $treeBuilder; |
||
33 | } |
||
34 | } |
||
35 |
Sometimes obsolete code just ends up commented out instead of removed. In this case it is better to remove the code once you have checked you do not need it.
The code might also have been commented out for debugging purposes. In this case it is vital that someone uncomments it again or your project may behave in very unexpected ways in production.
This check looks for comments that seem to be mostly valid code and reports them.