| Conditions | 1 |
| Paths | 1 |
| Total Lines | 30 |
| Code Lines | 28 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 27 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 39 | 7 | public function getConfigTreeBuilder() { |
|
| 40 | 7 | $tree_builder = new TreeBuilder(); |
|
| 41 | 7 | $root = $tree_builder->root("dicto"); |
|
| 42 | $root |
||
| 43 | 7 | ->children() |
|
| 44 | 7 | ->arrayNode("project") |
|
| 45 | 7 | ->children() |
|
| 46 | 7 | ->scalarNode("root") |
|
| 47 | 7 | ->isRequired() |
|
| 48 | 7 | ->end() |
|
| 49 | 7 | ->scalarNode("storage") |
|
| 50 | 7 | ->isRequired() |
|
| 51 | 7 | ->end() |
|
| 52 | 7 | ->end() |
|
| 53 | 7 | ->end() |
|
| 54 | 7 | ->arrayNode("analysis") |
|
| 55 | 7 | ->children() |
|
| 56 | 7 | ->arrayNode("ignore") |
|
| 57 | 7 | ->prototype("scalar") |
|
| 58 | 7 | ->end() |
|
| 59 | 7 | ->defaultValue(array()) |
|
| 60 | 7 | ->end() |
|
| 61 | 7 | ->end() |
|
| 62 | 7 | ->addDefaultsIfNotSet() |
|
| 63 | 7 | ->end() |
|
| 64 | 7 | ->end() |
|
| 65 | 7 | ->end(); |
|
| 66 | |||
| 67 | 7 | return $tree_builder; |
|
| 68 | } |
||
| 69 | |||
| 91 |