Conditions | 2 |
Paths | 2 |
Total Lines | 22 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 13 |
CRAP Score | 2.052 |
Changes | 0 |
1 | <?php |
||
44 | 1 | private function storagesConfig() |
|
45 | { |
||
46 | 1 | $treeBuilder = new TreeBuilder(); |
|
47 | 1 | $children = $treeBuilder->root('storages') |
|
48 | 1 | ->children() |
|
49 | 1 | ->arrayNode('array') |
|
50 | 1 | ->end() |
|
51 | 1 | ->arrayNode('custom') |
|
52 | 1 | ->children() |
|
53 | 1 | ->scalarNode('id')->end() |
|
54 | 1 | ->end() |
|
55 | 1 | ->end(); |
|
56 | |||
57 | 1 | if (class_exists(ElasticsearchActivityStorage::class)) { |
|
58 | $children->arrayNode('elastic') |
||
59 | ->children() |
||
60 | ->scalarNode('ongr_manager')->end() |
||
61 | ->end(); |
||
62 | } |
||
63 | |||
64 | 1 | return $children->end(); |
|
65 | } |
||
66 | } |
||
67 |