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 55f7eb3 commit fcc7787
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,12 @@ protected function handleInteractivePublish(): void
// Now we need to prompt the user for which files to publish
$selectedFiles = $this->promptForFiles($files, basename($target));

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

View check run for this annotation

Codecov / codecov/patch

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

Added line #L137 was not covered by tests

$this->infoComment(sprintf("Selected files [%s]\n", collect($selectedFiles)->map(fn(string $file): string => Str::after($file, basename($source) . '/'))->implode(', ')));
$this->infoComment(sprintf("Selected files [%s]\n", collect($selectedFiles)->map(fn (string $file): string => Str::after($file, basename($source).'/'))->implode(', ')));

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

View check run for this annotation

Codecov / codecov/patch

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

Added line #L139 was not covered by tests
}

protected function promptForFiles(Collection $files, string $baseDir): array

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

View check run for this annotation

Codecov / codecov/patch

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

Added line #L142 was not covered by tests
{
$choices = $files->mapWithKeys(/** @return array<string, string> */ function (string $source) use ($baseDir, $files): array {
$choices = $files->mapWithKeys(/** @return array<string, string> */ function (string $source) use ($baseDir): array {
return [$source => Str::after($source, $baseDir.'/')];
});

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

View check run for this annotation

Codecov / codecov/patch

packages/framework/src/Console/Commands/PublishViewsCommand.php#L144-L146

Added lines #L144 - L146 were not covered by tests

Expand Down

0 comments on commit fcc7787

Please sign in to comment.