@@ -12,10 +12,10 @@ |
||
12 | 12 | { |
13 | 13 | public function validate($value, Constraint $constraint) |
14 | 14 | { |
15 | - if ( empty($value) |
|
15 | + if (empty($value) |
|
16 | 16 | || !empty($value['delete']) |
17 | - || ( empty($value['file']) |
|
18 | - && ( empty($constraint->config['do_not_save_archival']) && empty($value['archival']) |
|
17 | + || (empty($value['file']) |
|
18 | + && (empty($constraint->config['do_not_save_archival']) && empty($value['archival']) |
|
19 | 19 | xor empty($value['main'])))) { |
20 | 20 | $this->context->buildViolation('This value should not be blank.') |
21 | 21 | ->addViolation(); |