File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -197,18 +197,18 @@ public function testExplodeHandlesArraysOfNestedRules()
197
197
198
198
$ results = $ parser ->explode ([
199
199
'users.*.name ' => Rule::forEach (function ($ value , $ attribute , $ data ) {
200
- $ this ->assertEquals ([
201
- 'users.0.name ' => 'Taylor Otwell ' ,
202
- 'users.1.name ' => 'Abigail Otwell ' ,
203
- ], $ data );
204
-
205
- return [
206
- Rule::requiredIf (true ),
207
- $ value === 'Taylor Otwell '
208
- ? Rule::in ('taylor ' )
209
- : Rule::in ('abigail ' ),
210
- ];
211
- }),
200
+ $ this ->assertEquals ([
201
+ 'users.0.name ' => 'Taylor Otwell ' ,
202
+ 'users.1.name ' => 'Abigail Otwell ' ,
203
+ ], $ data );
204
+
205
+ return [
206
+ Rule::requiredIf (true ),
207
+ $ value === 'Taylor Otwell '
208
+ ? Rule::in ('taylor ' )
209
+ : Rule::in ('abigail ' ),
210
+ ];
211
+ }),
212
212
]);
213
213
214
214
$ this ->assertEquals ([
You can’t perform that action at this time.
0 commit comments