Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3.0261 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
37 | 1 | protected function provideValues(array &$args, array $config): void |
|
38 | { |
||
39 | 1 | if (empty($config['variable'])) { |
|
40 | return; |
||
41 | } |
||
42 | |||
43 | 1 | $values = []; |
|
44 | 1 | foreach ($config['variable'] as $value) { |
|
45 | 1 | $values[$value['name']] = $this->sanitize($value['value']); |
|
46 | } |
||
47 | |||
48 | 1 | $args['values'] = $values; |
|
49 | } |
||
61 |