Skip to content

Commit 707cd49

Browse files
committed
style: php-cs-fixer
1 parent 2025c41 commit 707cd49

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

src/Asset/TagRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function renderWebpackScriptTags(string $entryName, ?string $packageName
8080
$this->convertArrayToAttributes($attributes)
8181
);
8282

83-
$this->renderedFiles['scripts'][] = $attributes["src"];
83+
$this->renderedFiles['scripts'][] = $attributes['src'];
8484
$this->renderedFilesWithAttributes['scripts'][] = $attributes;
8585
}
8686

@@ -119,7 +119,7 @@ public function renderWebpackLinkTags(string $entryName, ?string $packageName =
119119
$this->convertArrayToAttributes($attributes)
120120
);
121121

122-
$this->renderedFiles['styles'][] = $attributes["href"];
122+
$this->renderedFiles['styles'][] = $attributes['href'];
123123
$this->renderedFilesWithAttributes['styles'][] = $attributes;
124124
}
125125

src/EventListener/PreLoadAssetsEventListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function onKernelResponse(ResponseEvent $event): void
5252
foreach ($this->tagRenderer->getRenderedScriptsWithAttributes() as $attributes) {
5353
$attributes = array_merge($defaultAttributes, $attributes);
5454

55-
$link = ($this->createLink('preload', $attributes['src']))->withAttribute('as', 'script');
55+
$link = $this->createLink('preload', $attributes['src'])->withAttribute('as', 'script');
5656

5757
if (!empty($attributes['crossorigin']) && false !== $attributes['crossorigin']) {
5858
$link = $link->withAttribute('crossorigin', $attributes['crossorigin']);
@@ -67,7 +67,7 @@ public function onKernelResponse(ResponseEvent $event): void
6767
foreach ($this->tagRenderer->getRenderedStylesWithAttributes() as $attributes) {
6868
$attributes = array_merge($defaultAttributes, $attributes);
6969

70-
$link = ($this->createLink('preload', $attributes['href']))->withAttribute('as', 'style');
70+
$link = $this->createLink('preload', $attributes['href'])->withAttribute('as', 'style');
7171

7272
if (!empty($attributes['crossorigin']) && false !== $attributes['crossorigin']) {
7373
$link = $link->withAttribute('crossorigin', $attributes['crossorigin']);

tests/Asset/TagRendererTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,6 @@ public function testGetRenderedFilesAndReset()
316316
],
317317
], $renderer->getRenderedStylesWithAttributes());
318318

319-
320319
$renderer->reset();
321320
$this->assertEmpty($renderer->getRenderedScripts());
322321
$this->assertEmpty($renderer->getRenderedStyles());

0 commit comments

Comments
 (0)