Skip to content

Commit c6f6886

Browse files
committed
style fix
1 parent 6896f73 commit c6f6886

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

tests/Integration/View/ViewComponentTest.php

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -795,17 +795,17 @@ public function test_same_variable_can_be_passed_to_multiple_components(): void
795795
{
796796
$this->registerViewComponent(
797797
'x-my-aside',
798-
'<aside><x-template :foreach="$items as $item"><a href="$item[\'id\']">{{$item[\'label\']}}</a></x-template></aside>'
798+
'<aside><x-template :foreach="$items as $item"><a href="$item[\'id\']">{{$item[\'label\']}}</a></x-template></aside>',
799799
);
800800

801801
$this->registerViewComponent(
802802
'x-my-main',
803-
'<main><x-template :foreach="$items as $item"><div>{{$item$item[\'label\']}}</div></x-template></main>'
803+
'<main><x-template :foreach="$items as $item"><div>{{$item$item[\'label\']}}</div></x-template></main>',
804804
);
805805

806806
$this->registerViewComponent(
807807
'x-my-footer',
808-
'<footer><x-template :foreach="$items as $item"><p>{{$item[\'label\']}}</p></x-template></footer>'
808+
'<footer><x-template :foreach="$items as $item"><p>{{$item[\'label\']}}</p></x-template></footer>',
809809
);
810810

811811
$html = $this->render(
@@ -815,12 +815,13 @@ public function test_same_variable_can_be_passed_to_multiple_components(): void
815815
<x-my-main :items="$items" />
816816
<x-my-footer :items="$items" />
817817
HTML,
818-
)->data(
819-
items: [
820-
['id' => '1', 'label' => 'Item 1'],
821-
['id' => '2', 'label' => 'Item 2'],
822-
],
823818
)
819+
->data(
820+
items: [
821+
['id' => '1', 'label' => 'Item 1'],
822+
['id' => '2', 'label' => 'Item 2'],
823+
],
824+
),
824825
);
825826

826827
$this->assertSnippetsMatch(<<<HTML

0 commit comments

Comments
 (0)