Conditions | 1 |
Paths | 1 |
Total Lines | 43 |
Code Lines | 39 |
Lines | 0 |
Ratio | 0 % |
Tests | 38 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 2 | Features | 0 |
1 | <?php |
||
19 | 23 | public function getConfigTreeBuilder() |
|
20 | { |
||
21 | 23 | $treeBuilder = new TreeBuilder(); |
|
22 | 23 | $rootNode = $treeBuilder->root('onurb_yuml'); |
|
23 | |||
24 | $rootNode |
||
25 | 23 | ->children() |
|
26 | 23 | ->booleanNode('yuml_show_fields_description') |
|
27 | 23 | ->info('Set true to show fields properties in graph') |
|
28 | 23 | ->defaultTrue() |
|
29 | 23 | ->end() |
|
30 | 23 | ->arrayNode('yuml_colors') |
|
31 | 23 | ->prototype('array') |
|
32 | 23 | ->children() |
|
33 | 23 | ->end() |
|
34 | 23 | ->end() |
|
35 | 23 | ->end() |
|
36 | 23 | ->arrayNode('yuml_notes') |
|
37 | 23 | ->prototype('array') |
|
38 | 23 | ->children() |
|
39 | 23 | ->end() |
|
40 | 23 | ->end() |
|
41 | 23 | ->end() |
|
42 | 23 | ->enumNode('yuml_extension') |
|
43 | 23 | ->values(array('png', 'jpg', 'svg', 'pdf', 'json')) |
|
44 | 23 | ->defaultValue('png') |
|
45 | 23 | ->end() |
|
46 | 23 | ->enumNode('yuml_style') |
|
47 | 23 | ->values(array('plain', 'boring', 'scruffy')) |
|
48 | 23 | ->defaultValue('plain') |
|
49 | 23 | ->end() |
|
50 | 23 | ->enumNode('yuml_direction') |
|
51 | 23 | ->values(array('LR', 'TB', 'RL')) |
|
52 | 23 | ->defaultValue('TB') |
|
53 | 23 | ->end() |
|
54 | 23 | ->enumNode('yuml_scale') |
|
55 | 23 | ->values(array('huge', 'big', 'normal', 'small', 'tiny')) |
|
56 | 23 | ->defaultValue('normal') |
|
57 | 23 | ->end() |
|
58 | 23 | ->end(); |
|
59 | |||
60 | 23 | return $treeBuilder; |
|
61 | } |
||
62 | } |
||
63 |