Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
StyleCIBot committed Dec 10, 2024
1 parent 4c68ae6 commit 264295a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\File;
use Illuminate\Support\ServiceProvider;

use Symfony\Component\Finder\SplFileInfo;

use function Hyde\path_join;
use function str_replace;
use function sprintf;
Expand Down Expand Up @@ -124,8 +124,8 @@ protected function handleInteractivePublish(): void
// Now we need an array that maps all source files to their target paths retaining the directory structure
$search = File::allFiles($source);

Check warning on line 125 in packages/framework/src/Console/Commands/PublishViewsCommand.php

View check run for this annotation

Codecov / codecov/patch

packages/framework/src/Console/Commands/PublishViewsCommand.php#L125

Added line #L125 was not covered by tests

$files = collect($search)->mapWithKeys(/** @return array<string, string> */ function (SplFileInfo $file) use ($source, $target): array {
$targetPath = path_join($target, $file->getRelativePathname());
$files = collect($search)->mapWithKeys(/** @return array<string, string> */ function (SplFileInfo $file) use ($target): array {
$targetPath = path_join($target, $file->getRelativePathname());

Check warning on line 128 in packages/framework/src/Console/Commands/PublishViewsCommand.php

View check run for this annotation

Codecov / codecov/patch

packages/framework/src/Console/Commands/PublishViewsCommand.php#L127-L128

Added lines #L127 - L128 were not covered by tests

return [Hyde::pathToRelative(realpath($file->getPathname())) => Hyde::pathToRelative($targetPath)];
});

Check warning on line 131 in packages/framework/src/Console/Commands/PublishViewsCommand.php

View check run for this annotation

Codecov / codecov/patch

packages/framework/src/Console/Commands/PublishViewsCommand.php#L130-L131

Added lines #L130 - L131 were not covered by tests
Expand Down

0 comments on commit 264295a

Please sign in to comment.