Skip to content

Commit db26f57

Browse files
committed
cs
1 parent a3fa121 commit db26f57

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Forms/Controls/DateTimeControl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function formatHtmlValue(\DateTimeInterface|string|int $value): string
129129
return $this->normalizeValue($value)->format(match ($this->type) {
130130
self::TypeDate => 'Y-m-d',
131131
self::TypeTime => $this->withSeconds ? 'H:i:s' : 'H:i',
132-
self::TypeDateTime => $this->withSeconds ? 'Y-m-d\\TH:i:s' : 'Y-m-d\\TH:i',
132+
self::TypeDateTime => $this->withSeconds ? 'Y-m-d\TH:i:s' : 'Y-m-d\TH:i',
133133
});
134134
}
135135

tests/Forms/Controls.UploadControl.loadData.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ $_FILES = [
2929
'container' => [
3030
'name' => ['avatar' => "invalid\xAA\xAA\xAAutf"],
3131
'type' => ['avatar' => 'text/plain'],
32-
'tmp_name' => ['avatar' => 'C:\\PHP\\temp\\php1D5C.tmp'],
32+
'tmp_name' => ['avatar' => 'C:\PHP\temp\php1D5C.tmp'],
3333
'error' => ['avatar' => 0],
3434
'size' => ['avatar' => 3013],
3535
],
@@ -91,7 +91,7 @@ test('container file upload with invalid UTF', function () {
9191
'name' => '',
9292
'type' => '',
9393
'size' => 3013,
94-
'tmp_name' => 'C:\\PHP\\temp\\php1D5C.tmp',
94+
'tmp_name' => 'C:\PHP\temp\php1D5C.tmp',
9595
'error' => 0,
9696
]), $input->getValue());
9797
Assert::true($input->isFilled());

tests/Forms/Helpers.exportRules.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,6 @@ test('rule export with pattern and filters', function () {
101101
$input->setRequired(false);
102102
$input->addRule(Form::Email);
103103
Assert::same([
104-
['op' => ':pattern', 'msg' => 'match pattern', 'arg' => '\\d+'],
104+
['op' => ':pattern', 'msg' => 'match pattern', 'arg' => '\d+'],
105105
], Helpers::exportRules($input->getRules()));
106106
});

0 commit comments

Comments
 (0)