Skip to content

Commit 2e7cc8c

Browse files
committed
Code style
1 parent df23f98 commit 2e7cc8c

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/LiveComponent/src/ComponentWithFormTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private function extractFormValues(FormView $formView): array
168168
$name = $child->vars['name'];
169169
if (
170170
(
171-
!array_key_exists('expanded', $child->vars)
171+
!\array_key_exists('expanded', $child->vars)
172172
|| !$child->vars['expanded']
173173
)
174174
&& \count($child->children) > 0

src/LiveComponent/tests/Fixture/Component/Component6.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,14 @@ protected function instantiateForm(): FormInterface
5151
'choices' => [
5252
'foo' => 1,
5353
'bar' => 2
54-
]
54+
],
5555
])
5656
->add('choice_expanded', ChoiceType::class, [
5757
'choices' => [
5858
'foo' => 1,
59-
'bar' => 2
59+
'bar' => 2,
6060
],
61-
'expanded' => true
61+
'expanded' => true,
6262
])
6363
->add('checkbox', CheckboxType::class)
6464
->add('file', FileType::class)

src/LiveComponent/tests/Unit/Form/ComponentWithFormTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
*/
2020
class ComponentWithFormTest extends TypeTestCase
2121
{
22-
2322
public function testFormValues(): void
2423
{
2524
$component = new Component6($this->factory->createBuilder());

0 commit comments

Comments
 (0)