Skip to content

Commit 155ffb9

Browse files
committed
Linting
1 parent 8f82680 commit 155ffb9

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/LiveComponent/tests/Functional/EventListener/InterceptChildComponentRenderSubscriberTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testItUsesKeysToRenderChildrenLiveIds(): void
110110
$fingerprints = [];
111111
$i = 0;
112112
foreach ($fingerprintValues as $key => $fingerprintValue) {
113-
$prefix = 0 !== $i++ %2 ? 'live-4172682817-the-key' : 'live-521026374-the-key';
113+
$prefix = 0 !== $i++ % 2 ? 'live-4172682817-the-key' : 'live-521026374-the-key';
114114
// creating fingerprints keys to match todo_list_with_keys.html.twig
115115
$fingerprints[$prefix.$key] = $fingerprintValue;
116116
}

src/TwigComponent/src/ComponentRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public function render(MountedComponent $mounted): string
8484
}
8585

8686
public function embeddedContext(string $name, array $props, array $context, string $hostTemplateName, int $index): array
87-
{
87+
{
8888
$context[PreRenderEvent::EMBEDDED] = true;
8989

9090
$mounted = $this->factory->create($name, $props);

src/TwigComponent/src/Test/InteractsWithTwigComponents.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ protected function mountTwigComponent(string $name, array $data = []): object
3030
/**
3131
* @param array<string,string> $blocks
3232
*/
33-
protected function renderTwigComponent(string $name, array $data = [], ?string $content = null, array $blocks = []): RenderedComponent
33+
protected function renderTwigComponent(string $name, array $data = [], string $content = null, array $blocks = []): RenderedComponent
3434
{
3535
if (!$this instanceof KernelTestCase) {
3636
throw new \LogicException(sprintf('The "%s" trait can only be used on "%s" classes.', __TRAIT__, KernelTestCase::class));

src/TwigComponent/src/Twig/ComponentNode.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function compile(Compiler $compiler): void
4242
->raw(', ')
4343
->raw('twig_to_array(')
4444
->subcompile($this->getNode('variables'))
45-
->raw(")")
45+
->raw(')')
4646
->raw(");\n")
4747
;
4848

@@ -74,7 +74,7 @@ public function compile(Compiler $compiler): void
7474
->raw($this->getAttribute('index'))
7575
->raw(");\n")
7676
;
77-
77+
7878
$compiler->write('$embeddedBlocks = $embeddedContext[')
7979
->string('outerBlocks')
8080
->raw(']->convert($blocks, ')

0 commit comments

Comments
 (0)