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