Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 66.67% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | trait CharsetConfigurationTrait |
||
21 | { |
||
22 | 18 | private static function addCharsetConfigurationNode(NodeBuilder $nodeBuilder, ?string $defaultCharset): NodeBuilder |
|
23 | { |
||
24 | return $nodeBuilder |
||
|
|||
25 | 18 | ->scalarNode('charset') |
|
26 | 18 | ->defaultValue($defaultCharset) |
|
27 | 18 | ->end(); |
|
28 | } |
||
29 | |||
30 | 18 | private static function addCharsetConfigurationNodeFromDefaultsConfiguration(NodeBuilder $nodeBuilder, DefaultsConfigurationModel $defaultsConfiguration): NodeBuilder |
|
31 | { |
||
32 | 18 | return self::addCharsetConfigurationNode($nodeBuilder, $defaultsConfiguration->getCharset()); |
|
33 | } |
||
34 | |||
35 | private static function getConfiguredCharset(ActionConfiguration $actionConfiguration): ?string |
||
40 | } |
||
41 | } |
||
42 |