Skip to content

Commit b50af05

Browse files
committed
phpcs
1 parent 261f007 commit b50af05

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/LiveComponent/src/Util/DehydratedProps.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ public function hasNestedPathValue(string $propName, string $nestedPath): bool
100100
{
101101
$fullPath = $propName.'.'.$nestedPath;
102102

103-
return array_key_exists($fullPath, $this->nestedPathValues);
103+
return \array_key_exists($fullPath, $this->nestedPathValues);
104104
}
105105

106106
public function getNestedPathValue(string $propName, string $nestedPath): mixed

src/LiveComponent/tests/Integration/LiveComponentHydratorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ public function provideDehydrationHydrationTests(): iterable
470470
->userUpdatesProps([
471471
// instead of replacing the entire array, you can change
472472
// just one key on the array, since it's fully writable
473-
'options.character' => 'Buster Bluth'
473+
'options.character' => 'Buster Bluth',
474474
])
475475
->assertObjectAfterHydration(function (object $object) {
476476
$this->assertSame(
@@ -493,15 +493,15 @@ public function provideDehydrationHydrationTests(): iterable
493493
'lineItems' => [
494494
['name' => 'item1', 'quantity' => 4, 'price' => 100],
495495
['name' => 'item2', 'quantity' => 2, 'price' => 200],
496-
['name' => 'item3', 'quantity' => 1, 'price' => 1000]
496+
['name' => 'item3', 'quantity' => 1, 'price' => 1000],
497497
],
498498
]])
499499
->assertDehydratesTo(['invoice' => [
500500
'number' => '123',
501501
'lineItems' => [
502502
['name' => 'item1', 'quantity' => 4, 'price' => 100],
503503
['name' => 'item2', 'quantity' => 2, 'price' => 200],
504-
['name' => 'item3', 'quantity' => 1, 'price' => 1000]
504+
['name' => 'item3', 'quantity' => 1, 'price' => 1000],
505505
],
506506
]])
507507
->userUpdatesProps([
@@ -539,7 +539,7 @@ public function provideDehydrationHydrationTests(): iterable
539539
'options' => [
540540
'show' => 'Arrested development',
541541
'character' => 'Michael Bluth',
542-
]
542+
],
543543
],
544544
['options.character' => 'Michael Bluth'],
545545
)

0 commit comments

Comments
 (0)