Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Console/Command/Theme/BuildCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ protected function executeCommand(InputInterface $input, OutputInterface $output

if (empty($themeCodes)) {
$themes = $this->themeList->getAllThemes();
$options = array_map(fn($theme) => $theme->getCode(), $themes);
$options = array_values(array_map(fn($theme) => $theme->getCode(), $themes));

// Check if we're in an interactive terminal environment
if (!$this->isInteractiveTerminal($output)) {
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/Theme/CleanCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private function getAllThemeCodes(): ?array
private function selectThemesInteractively(OutputInterface $output): ?array
{
$themes = $this->themeList->getAllThemes();
$options = array_map(fn($theme) => $theme->getCode(), $themes);
$options = array_values(array_map(fn($theme) => $theme->getCode(), $themes));

if (!$this->isInteractiveTerminal($output)) {
$this->displayAvailableThemes($themes);
Expand Down
2 changes: 1 addition & 1 deletion src/Console/Command/Theme/TokensCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private function selectTheme(?string $themeCode): ?string
}

$themes = $this->themeList->getAllThemes();
$options = array_map(fn($theme) => $theme->getCode(), $themes);
$options = array_values(array_map(fn($theme) => $theme->getCode(), $themes));

$themeCodePrompt = new SearchPrompt(
label: 'Select theme to generate tokens for',
Expand Down
Loading