Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | protected function generateArguments(array $config): array |
||
21 | { |
||
22 | $parent = parent::generateArguments($config); |
||
23 | $current = [ |
||
24 | 'invalidDateTimeMessage' => $config['invalid_datetime_message'] ?? null, |
||
25 | 'invalidMessage' => $config['invalid_message'] ?? null, |
||
26 | 'maxPropertyPath' => $config['property_path_max'] ?? null, |
||
27 | 'minPropertyPath' => $config['property_path_min'] ?? null, |
||
28 | 'notInRangeMessage' => $config['message_not_in_range'] ?? null, |
||
29 | ]; |
||
30 | |||
31 | return array_filter(array_merge($parent, $current)); |
||
32 | } |
||
44 |