| 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 | 18 | private static function addLoggerConfigurationNode(NodeBuilder $nodeBuilder, string $defaultChannel, string $defaultFilePath): NodeBuilder |
|
| 25 | { |
||
| 26 | return $nodeBuilder |
||
| 27 | 18 | ->arrayNode('logger') |
|
| 28 | 18 | ->canBeDisabled() |
|
| 29 | 18 | ->children() |
|
| 30 | 18 | ->scalarNode('channel') |
|
| 31 | 18 | ->cannotBeEmpty() |
|
| 32 | 18 | ->defaultValue($defaultChannel) |
|
| 33 | 18 | ->end() |
|
| 34 | 18 | ->scalarNode('file_path') |
|
|
|
|||
| 35 | 18 | ->cannotBeEmpty() |
|
| 36 | 18 | ->defaultValue($defaultFilePath) |
|
| 37 | 18 | ->end() |
|
| 38 | 18 | ->end() |
|
| 39 | 18 | ->end(); |
|
| 40 | } |
||
| 59 |