Skip to content

Commit 3555018

Browse files
committed
✨ style: format output messages for theme build success and failure
1 parent bc563e5 commit 3555018

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

src/Console/Command/Theme/BuildCommand.php

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,14 +179,20 @@ private function processBuildThemes(
179179

180180
if ($success) {
181181
// Show that the theme was successfully built
182-
$io->writeln(
183-
sprintf(" Building %s (%d of %d) ... <fg=green>done</>", $themeNameCyan, $currentTheme, $totalThemes)
184-
);
182+
$io->writeln(sprintf(
183+
" Building %s (%d of %d) ... <fg=green>done</>",
184+
$themeNameCyan,
185+
$currentTheme,
186+
$totalThemes
187+
));
185188
} else {
186189
// Show that an error occurred while building the theme
187-
$io->writeln(
188-
sprintf(" Building %s (%d of %d) ... <fg=red>failed</>", $themeNameCyan, $currentTheme, $totalThemes)
189-
);
190+
$io->writeln(sprintf(
191+
" Building %s (%d of %d) ... <fg=red>failed</>",
192+
$themeNameCyan,
193+
$currentTheme,
194+
$totalThemes
195+
));
190196
}
191197
}
192198
}
@@ -353,7 +359,7 @@ private function getCachedEnvironmentVariables(): array
353359
*/
354360
private function sanitizeEnvironmentValue(string $name, string $value): ?string
355361
{
356-
return match ($name) {
362+
return match($name) {
357363
'COLUMNS', 'LINES' => $this->sanitizeNumericValue($value),
358364
'TERM' => $this->sanitizeTermValue($value),
359365
'CI', 'GITHUB_ACTIONS', 'GITLAB_CI' => $this->sanitizeBooleanValue($value),

0 commit comments

Comments
 (0)