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 25, 2024
1 parent 3f394ea commit d43ebfb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public function handle(): int
if ($selected !== 'all' && ! Prompt::shouldFallback()) {
// If Laravel Prompts are supported, we interactively prompt the user for which files to publish
$publisher->only(multiselect('Select the files you want to publish (CTRL+A to toggle all)', $publisher->getFileChoices(), [], 10, 'required', hint: 'Navigate with arrow keys, space to select, enter to confirm.'));
}
}

$publisher->publishFiles();

Expand Down Expand Up @@ -101,7 +101,7 @@ protected function promptForCategory(): string
protected function formatPublishableChoices(): array
{
return collect($this->options)
->map(fn (ViewPublishGroup $option, string $key): string => sprintf("<comment>%s</comment>: %s", $key, $option->description))
->map(fn (ViewPublishGroup $option, string $key): string => sprintf('<comment>%s</comment>: %s', $key, $option->description))
->prepend('Publish all categories listed below')
->values()
->all();
Expand All @@ -113,7 +113,7 @@ protected function parseChoiceIntoKey(string $choice): string
}

/**
* @param array<string, \Hyde\Console\Helpers\ViewPublishGroup> $groups
* @param array<string, \Hyde\Console\Helpers\ViewPublishGroup> $groups
* @return array<string, \Hyde\Console\Helpers\ViewPublishGroup>
*/
protected static function mapToKeys(array $groups): array
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@
namespace Hyde\Console\Helpers;

use Hyde\Facades\Filesystem;
use Hyde\Foundation\Providers\ViewServiceProvider;
use Hyde\Hyde;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\File;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use Illuminate\Support\Stringable;
use Symfony\Component\Finder\SplFileInfo;

use function Hyde\path_join;

/**
* @internal This class offloads logic from the PublishViewsCommand class and should not be used elsewhere.
Expand Down Expand Up @@ -43,7 +37,7 @@ public function getFileChoices(): array
/**
* Only publish the selected files.
*
* @param array<string> $selectedFiles Array of selected file paths, matching the keys of the publishableFilesMap.
* @param array<string> $selectedFiles Array of selected file paths, matching the keys of the publishableFilesMap.
*/
public function only(array $selectedFiles): void
{
Expand Down

0 comments on commit d43ebfb

Please sign in to comment.