Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | 1 | protected function generateArguments(array $config): array |
|
19 | { |
||
20 | 1 | $parent = parent::generateArguments($config); |
|
21 | 1 | $value = $config['value'] ?? false; |
|
22 | |||
23 | 1 | $current = [ |
|
24 | 1 | 'propertyPath' => $config['property_path'] ?? null, |
|
25 | 1 | 'value' => $this->sanitize($value), |
|
26 | 1 | ]; |
|
27 | |||
28 | 1 | return array_filter(array_merge($parent, $current)); |
|
29 | } |
||
31 |