Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Tests | 17 |
CRAP Score | 1.0001 |
Changes | 0 |
1 | <?php |
||
24 | 1 | public function configure(ArrayNodeDefinition $builder) |
|
25 | { |
||
26 | $builder |
||
27 | 1 | ->addDefaultsIfNotSet() |
|
28 | 1 | ->children() |
|
29 | 1 | ->scalarNode('path') |
|
30 | 1 | ->defaultValue('var/log/behat.log') |
|
31 | 1 | ->end() |
|
32 | 1 | ->scalarNode('level') |
|
33 | 1 | ->beforeNormalization() |
|
34 | 1 | ->always() |
|
35 | 1 | ->then(function ($value) { |
|
36 | return Logger::toMonologLevel($value); |
||
37 | 1 | }) |
|
38 | 1 | ->end() |
|
39 | 1 | ->defaultValue(Logger::DEBUG) |
|
40 | 1 | ->end() |
|
41 | 1 | ->end() |
|
42 | 1 | ->end(); |
|
43 | 1 | } |
|
44 | |||
95 |