Skip to content

Commit 3aee494

Browse files
committed
Apply CS fixes
1 parent 2668577 commit 3aee494

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

extra/html-extra/Tests/HtmlAttrMergeTest.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414
use PHPUnit\Framework\TestCase;
1515
use Twig\Error\RuntimeError;
16-
use Twig\Extra\Html\HtmlAttr\AttributeValueInterface;
1716
use Twig\Extra\Html\HtmlAttr\MergeableInterface;
1817
use Twig\Extra\Html\HtmlExtension;
1918

@@ -22,7 +21,7 @@ class HtmlAttrMergeTest extends TestCase
2221
/**
2322
* @dataProvider htmlAttrProvider
2423
*/
25-
public function testMerge(array $expected, array $inputs): void
24+
public function testMerge(array $expected, array $inputs)
2625
{
2726
$result = HtmlExtension::htmlAttrMerge(...$inputs);
2827

@@ -181,7 +180,7 @@ public static function htmlAttrProvider(): \Generator
181180
];
182181
}
183182

184-
public function testIncompatibleValuesMergeThrowsException(): void
183+
public function testIncompatibleValuesMergeThrowsException()
185184
{
186185
$this->expectException(RuntimeError::class);
187186
$this->expectExceptionMessage('Cannot merge incompatible values for key "test"');
@@ -202,16 +201,18 @@ public function __construct(private readonly mixed $value)
202201
public function mergeInto(mixed $previous): self
203202
{
204203
$previousValue = $previous instanceof self ? $previous->value : $previous;
204+
205205
return new self("merged: {$previousValue} + {$this->value}");
206206
}
207207

208208
public function appendFrom(mixed $newValue): self
209209
{
210-
if (is_array($newValue)) {
210+
if (\is_array($newValue)) {
211211
$newValue = implode(', ', $newValue);
212212
} elseif ($newValue instanceof self) {
213213
$newValue = $newValue->value;
214214
}
215+
215216
return new self("appended: {$this->value} + {$newValue}");
216217
}
217218

extra/html-extra/Tests/HtmlAttrTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class HtmlAttrTest extends TestCase
2222
/**
2323
* @dataProvider htmlAttrProvider
2424
*/
25-
public function testPrintingAttributes(string $expected, array $inputs): void
25+
public function testPrintingAttributes(string $expected, array $inputs)
2626
{
2727
$result = HtmlExtension::htmlAttr(new Environment(new ArrayLoader()), ...$inputs);
2828

0 commit comments

Comments
 (0)