Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 874e88c

Browse files
rawilkgithub-actions[bot]
authored andcommitted
PHP Linting (Pint)
1 parent ffbc3a7 commit 874e88c

File tree

4 files changed

+32
-32
lines changed

4 files changed

+32
-32
lines changed

tests/Components/Choice/SwitchToggleTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@
6565
'data-foo' => 'bar',
6666
'id' => 'foo',
6767
])
68-
->contains('.switch-toggle', [
69-
'class' => 'foo-class',
70-
]);
68+
->contains('.switch-toggle', [
69+
'class' => 'foo-class',
70+
]);
7171
});
7272
});
7373

@@ -124,9 +124,9 @@
124124
$div->contains('span.off', [
125125
'text' => 'off',
126126
])
127-
->contains('span.on', [
128-
'text' => 'on',
129-
]);
127+
->contains('span.on', [
128+
'text' => 'on',
129+
]);
130130
});
131131
});
132132

tests/Components/Files/FileUploadTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@
3838
$div->contains('div', [
3939
'x-on:livewire-upload-start' => 'isUploading = true',
4040
])
41-
->contains('input', [
42-
'type' => 'file',
43-
'wire:model' => 'file',
44-
]);
41+
->contains('input', [
42+
'type' => 'file',
43+
'wire:model' => 'file',
44+
]);
4545
});
4646
});
4747

tests/Components/Inputs/EmailTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
Route::get('/test', fn () => Blade::render('<x-email name="email" type="url" id="my-email" />'));
2323

2424
get('/test')
25-
->assertElementExists('input', function (AssertElement $input) {
26-
$input->is('input')
27-
->has('type', 'email')
28-
->has('name', 'email')
29-
->has('id', 'my-email')
30-
->doesntHave('type', 'url');
31-
});
25+
->assertElementExists('input', function (AssertElement $input) {
26+
$input->is('input')
27+
->has('type', 'email')
28+
->has('name', 'email')
29+
->has('id', 'my-email')
30+
->doesntHave('type', 'url');
31+
});
3232
});

tests/Components/Inputs/TreeSelectOptionTest.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -84,23 +84,23 @@
8484
'text' => 'Foo 1',
8585
'level' => '1',
8686
])
87-
->doesntContain('.tree-select__children');
87+
->doesntContain('.tree-select__children');
8888
})
89-
->find('.tree-select__option-li:last-child', function (AssertElement $option) {
90-
$option->contains('.tree-select__option', [
91-
'text' => 'Foo 2',
92-
'level' => '1',
93-
])
94-
->find('.tree-select__children', function (AssertElement $children) {
95-
$children->find('.tree-select__option-li', function (AssertElement $option) {
96-
$option->contains('.tree-select__option', [
97-
'text' => 'Foo 2.1',
98-
'level' => '2',
99-
])
100-
->doesntContain('.tree-select__children');
89+
->find('.tree-select__option-li:last-child', function (AssertElement $option) {
90+
$option->contains('.tree-select__option', [
91+
'text' => 'Foo 2',
92+
'level' => '1',
93+
])
94+
->find('.tree-select__children', function (AssertElement $children) {
95+
$children->find('.tree-select__option-li', function (AssertElement $option) {
96+
$option->contains('.tree-select__option', [
97+
'text' => 'Foo 2.1',
98+
'level' => '2',
99+
])
100+
->doesntContain('.tree-select__children');
101+
});
101102
});
102-
});
103-
});
103+
});
104104
});
105105
});
106106
});

0 commit comments

Comments
 (0)