Skip to content

Commit b701c32

Browse files
committed
Clean up formatting
1 parent 49eee7e commit b701c32

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

packages/framework/src/Console/Helpers/ViewPublishGroup.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,7 @@ public static function fromGroup(string $group, ?string $name = null, ?string $d
5252
return new static($group, $source, $target, $files, $name, $description);
5353
}
5454

55-
/**
56-
* Get the map of all publishable file paths.
57-
*
58-
* @return array<string, string> The source file paths mapped to their target file paths.
59-
*/
55+
/** @return array<string, string> The source file paths mapped to their target file paths. */
6056
public function publishableFilesMap(): array
6157
{
6258
return collect($this->files)->mapWithKeys(fn (string $file): array => [

packages/framework/tests/Unit/Console/Helpers/ViewPublishGroupTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public function testCanCreateGroup()
4444
$this->assertSame($group->description, "Publish the 'layouts' files for customization.");
4545
$this->assertSame($group->source, 'packages/framework/resources/views/layouts');
4646
$this->assertSame($group->target, 'resources/views/vendor/hyde/layouts');
47-
$this->assertSame($group->files, ["app.blade.php", "page.blade.php", "post.blade.php"]);
47+
$this->assertSame($group->files, ['app.blade.php', 'page.blade.php', 'post.blade.php']);
4848
}
4949

5050
public function testCanCreateGroupWithCustomName()
@@ -99,12 +99,12 @@ public static function handle(string $directory, array|string|false $matchExtens
9999
{
100100
ViewPublishGroupTest::assertSame($directory, 'packages/framework/resources/views/layouts');
101101
ViewPublishGroupTest::assertSame($matchExtensions, false);
102-
ViewPublishGroupTest::assertSame($recursive, true);
102+
ViewPublishGroupTest::assertSame($recursive, true);
103103

104104
return collect([
105-
"packages/framework/resources/views/layouts/app.blade.php",
106-
"packages/framework/resources/views/layouts/page.blade.php",
107-
"packages/framework/resources/views/layouts/post.blade.php",
105+
'packages/framework/resources/views/layouts/app.blade.php',
106+
'packages/framework/resources/views/layouts/page.blade.php',
107+
'packages/framework/resources/views/layouts/post.blade.php',
108108
]);
109109
}
110110
}

0 commit comments

Comments
 (0)