Skip to content

Commit 64f894c

Browse files
committed
test: change coding style
1 parent 01a2589 commit 64f894c

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

tests/system/Validation/ValidationTest.php

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -231,22 +231,20 @@ public function testClosureRule(): void
231231

232232
public function testClosureRuleWithParamError(): void
233233
{
234-
$this->validation->setRules(
235-
[
236-
'foo' => [
237-
'required',
238-
static function ($value, $data, &$error, $field) {
239-
if ($value !== 'abc') {
240-
$error = 'The ' . $field . ' value is not "abc"';
234+
$this->validation->setRules([
235+
'foo' => [
236+
'required',
237+
static function ($value, $data, &$error, $field) {
238+
if ($value !== 'abc') {
239+
$error = 'The ' . $field . ' value is not "abc"';
241240

242-
return false;
243-
}
241+
return false;
242+
}
244243

245-
return true;
246-
},
247-
],
244+
return true;
245+
},
248246
],
249-
);
247+
]);
250248

251249
$data = ['foo' => 'xyz'];
252250
$return = $this->validation->run($data);

0 commit comments

Comments
 (0)