Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Tests | 25 |
CRAP Score | 1 |
Changes | 3 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
24 | 1 | public function getConfigTreeBuilder() |
|
25 | { |
||
26 | 1 | $treeBuilder = new TreeBuilder(); |
|
27 | 1 | $rootNode = $treeBuilder->root('tpg_extjs'); |
|
28 | |||
29 | $rootNode |
||
30 | 3 | ->children() |
|
31 | 1 | ->arrayNode('remoting') |
|
32 | 3 | ->children() |
|
33 | 5 | ->arrayNode('bundles') |
|
34 | 1 | ->prototype('scalar') |
|
35 | 3 | ->validate() |
|
36 | 4 | ->ifNotInArray($this->bundles) |
|
37 | 2 | ->thenInvalid('%s is not a valid bundle.') |
|
38 | 5 | ->end() |
|
39 | 2 | ->end() |
|
40 | 5 | ->end() |
|
41 | 4 | ->end() |
|
42 | 3 | ->end() |
|
43 | 6 | ->arrayNode('entities') |
|
44 | 5 | ->prototype('scalar') |
|
45 | 4 | ->end() |
|
46 | 4 | ->end() |
|
47 | 3 | ->end() |
|
48 | 4 | ; |
|
49 | 3 | ||
50 | 4 | return $treeBuilder; |
|
51 | 4 | } |
|
52 | } |
||
53 |