Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 23 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | public function getConfigTreeBuilder() |
||
32 | { |
||
33 | return (new TreeBuilder()) |
||
34 | ->root('gps_lab_date') |
||
35 | ->addDefaultsIfNotSet() |
||
36 | ->children() |
||
37 | ->scalarNode('time_zone') |
||
38 | ->end() |
||
39 | ->arrayNode('cookie') |
||
40 | ->children() |
||
41 | ->scalarNode('used') |
||
42 | ->defaultValue(true) |
||
43 | ->end() |
||
44 | ->scalarNode('name') |
||
45 | ->cannotBeEmpty() |
||
46 | ->defaultValue('_time_zone_name') |
||
47 | ->end() |
||
48 | ->scalarNode('offset') |
||
49 | ->cannotBeEmpty() |
||
50 | ->defaultValue('_time_zone_offset') |
||
51 | ->end() |
||
52 | ->end() |
||
53 | ->end() |
||
54 | ->end(); |
||
55 | } |
||
56 | } |
||
57 |