Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 14 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | 19 | private static function addLoggerConfigurationNode(NodeBuilder $nodeBuilder, string $defaultChannel, string $defaultFilePath): NodeBuilder |
|
25 | { |
||
26 | return $nodeBuilder |
||
27 | 19 | ->arrayNode('logger') |
|
28 | 19 | ->canBeDisabled() |
|
29 | 19 | ->children() |
|
30 | 19 | ->scalarNode('channel') |
|
31 | 19 | ->cannotBeEmpty() |
|
32 | 19 | ->defaultValue($defaultChannel) |
|
33 | 19 | ->end() |
|
34 | 19 | ->scalarNode('file_path') |
|
|
|||
35 | 19 | ->cannotBeEmpty() |
|
36 | 19 | ->defaultValue($defaultFilePath) |
|
37 | 19 | ->end() |
|
38 | 19 | ->end() |
|
39 | 19 | ->end(); |
|
40 | } |
||
59 |