Conditions | 3 |
Paths | 3 |
Total Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
34 | protected function validateFormio(array $config, Constraint $constraint) |
||
35 | { |
||
36 | foreach (['title', 'display', 'type', 'name', 'path', 'components', 'submissionAccess'] as $attribute) { |
||
37 | if (!array_key_exists($attribute, $config)) { |
||
38 | $this->context |
||
39 | ->buildViolation($constraint->missing) |
||
40 | ->setParameter('{{ attribute }}', '"'.$attribute.'"') |
||
41 | ->atPath('config.'.$attribute) |
||
42 | ->addViolation(); |
||
43 | } |
||
44 | } |
||
45 | } |
||
46 | } |
||
47 |