Conditions | 1 |
Paths | 1 |
Total Lines | 30 |
Code Lines | 27 |
Lines | 0 |
Ratio | 0 % |
Tests | 26 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | 11 | public function getConfigTreeBuilder() |
|
31 | { |
||
32 | 11 | $tree_builder = new TreeBuilder(); |
|
33 | $tree_builder |
||
34 | 11 | ->root('anime_db_ani_db_browser') |
|
35 | 11 | ->children() |
|
36 | 11 | ->scalarNode('client') |
|
37 | 11 | ->cannotBeEmpty() |
|
38 | 11 | ->defaultValue('cache') |
|
39 | 11 | ->end() |
|
40 | 11 | ->arrayNode('app') |
|
41 | 11 | ->isRequired() |
|
42 | 11 | ->children() |
|
43 | 11 | ->integerNode('version') |
|
44 | 11 | ->isRequired() |
|
45 | 11 | ->end() |
|
46 | 11 | ->scalarNode('client') |
|
47 | 11 | ->cannotBeEmpty() |
|
48 | 11 | ->isRequired() |
|
49 | 11 | ->end() |
|
50 | 11 | ->scalarNode('code') |
|
51 | 11 | ->cannotBeEmpty() |
|
52 | 11 | ->isRequired() |
|
53 | 11 | ->end() |
|
54 | 11 | ->end() |
|
55 | 11 | ->end() |
|
56 | 11 | ->end(); |
|
57 | |||
58 | 11 | return $tree_builder; |
|
59 | } |
||
60 | } |
||
61 |