From 1d6240afcd24889c1e612703b8284673ba94ceae Mon Sep 17 00:00:00 2001 From: Richard Dern Date: Wed, 8 May 2024 14:55:39 +0200 Subject: [PATCH] Cosmetic --- app/Console/Commands/Bundle/Render.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/app/Console/Commands/Bundle/Render.php b/app/Console/Commands/Bundle/Render.php index e12d862..ae5c957 100644 --- a/app/Console/Commands/Bundle/Render.php +++ b/app/Console/Commands/Bundle/Render.php @@ -81,9 +81,9 @@ private function selectDisk(): self $this->sourceDisk = Storage::disk($sourceDisk); $this->targetDisk = Storage::disk($targetDisk); - $this->comment( + $this->line( sprintf( - 'Using `%s` as source disk and `%s` as target disk for generated content', + 'Using %s as source disk and %s as target disk for generated content', $sourceDisk, $targetDisk ) @@ -142,13 +142,13 @@ private function clearCache(): self private function getBundles() { $path = $this->argument('path') ?? '/'; - $comment = sprintf('Rendering %s', $path); + $comment = sprintf('Rendering %s', $path); if ($this->option('recursive')) { - $comment .= ' and all sub-bundles'; + $comment .= ' and all sub-bundles'; } - $this->comment($comment); + $this->line($comment); $this->output->write('Collecting bundles... '); if ($this->option('recursive')) { @@ -184,13 +184,12 @@ private function render(): self private function handleBundle(Bundle $bundle, $progress) { $progress->label(sprintf('Rendering %s ...', $bundle->getPath())); + $progress->hint('Rendering the bundle'); if ($this->option('dry-run')) { return; } - $progress->hint('Rendering the bundle'); - $result = $bundle->render(); foreach ($result as $path => $content) {