Skip to content

Commit 470f0da

Browse files
committed
Apply fixes from StyleCI
1 parent ae9f78a commit 470f0da

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/Illuminate/Foundation/Vite.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,15 +262,15 @@ public function __invoke($entrypoints, $buildDirectory = null)
262262
$chunk['src'],
263263
$this->assetPath("{$buildDirectory}/{$chunk['file']}"),
264264
$chunk,
265-
$manifest
265+
$manifest,
266266
]);
267267

268268
foreach ($chunk['imports'] ?? [] as $import) {
269269
$preloads->push([
270270
$import,
271271
$this->assetPath("{$buildDirectory}/{$manifest[$import]['file']}"),
272272
$manifest[$import],
273-
$manifest
273+
$manifest,
274274
]);
275275

276276
foreach ($manifest[$import]['css'] ?? [] as $css) {
@@ -280,7 +280,7 @@ public function __invoke($entrypoints, $buildDirectory = null)
280280
$partialManifest->keys()->first(),
281281
$this->assetPath("{$buildDirectory}/{$css}"),
282282
$partialManifest->first(),
283-
$manifest
283+
$manifest,
284284
]);
285285

286286
$tags->push($this->makeTagForChunk(
@@ -306,7 +306,7 @@ public function __invoke($entrypoints, $buildDirectory = null)
306306
$partialManifest->keys()->first(),
307307
$this->assetPath("{$buildDirectory}/{$css}"),
308308
$partialManifest->first(),
309-
$manifest
309+
$manifest,
310310
]);
311311

312312
$tags->push($this->makeTagForChunk(

tests/Http/Middleware/VitePreloadingTest.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ protected function tearDown(): void
2121
public function testItDoesNotSetLinkTagWhenNoTagsHaveBeenPreloaded()
2222
{
2323
$app = new Container();
24-
$app->instance(Vite::class, new class extends Vite {
24+
$app->instance(Vite::class, new class extends Vite
25+
{
2526
protected $preloadedAssets = [];
2627
});
2728
Facade::setFacadeApplication($app);
@@ -36,7 +37,8 @@ public function testItDoesNotSetLinkTagWhenNoTagsHaveBeenPreloaded()
3637
public function testItAddsPreloadLinkHeader()
3738
{
3839
$app = new Container();
39-
$app->instance(Vite::class, new class extends Vite {
40+
$app->instance(Vite::class, new class extends Vite
41+
{
4042
protected $preloadedAssets = [
4143
'https://laravel.com/app.js' => [
4244
'rel="modulepreload"',

0 commit comments

Comments
 (0)