@@ -35,7 +35,8 @@ final class VineRequiredIfExistRule implements VineRule {
35
35
}
36
36
37
37
if (! matchs.contains (false ) && field.value == null ) {
38
- final error = ctx.errorReporter.format ('requiredIfExists' , field, null , {});
38
+ final error =
39
+ ctx.errorReporter.format ('requiredIfExists' , field, null , {});
39
40
ctx.errorReporter.report ('requiredIfExists' , field.customKeys, error);
40
41
41
42
field.canBeContinue = false ;
@@ -61,7 +62,8 @@ final class VineRequiredIfAnyExistRule implements VineRule {
61
62
}
62
63
63
64
if (hasMatch && field.value == null ) {
64
- final error = ctx.errorReporter.format ('requiredIfExistsAny' , field, null , {});
65
+ final error =
66
+ ctx.errorReporter.format ('requiredIfExistsAny' , field, null , {});
65
67
ctx.errorReporter.report ('requiredIfExistsAny' , field.customKeys, error);
66
68
67
69
field.canBeContinue = false ;
@@ -84,7 +86,8 @@ final class VineRequiredIfMissingRule implements VineRule {
84
86
}
85
87
86
88
if (! matchs.contains (true ) && field.value == null ) {
87
- final error = ctx.errorReporter.format ('requiredIfMissing' , field, null , {});
89
+ final error =
90
+ ctx.errorReporter.format ('requiredIfMissing' , field, null , {});
88
91
ctx.errorReporter.report ('requiredIfMissing' , field.customKeys, error);
89
92
90
93
field.canBeContinue = false ;
@@ -110,7 +113,8 @@ final class VineRequiredIfAnyMissingRule implements VineRule {
110
113
}
111
114
112
115
if (! hasMatch && field.value == null ) {
113
- final error = ctx.errorReporter.format ('requiredIfMissingAny' , field, null , {});
116
+ final error =
117
+ ctx.errorReporter.format ('requiredIfMissingAny' , field, null , {});
114
118
ctx.errorReporter.report ('requiredIfMissingAny' , field.customKeys, error);
115
119
116
120
field.canBeContinue = false ;
0 commit comments