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