diff --git a/packages/realtime-compiler/src/ConsoleOutput.php b/packages/realtime-compiler/src/ConsoleOutput.php index 9f089c9a469..2260130948e 100644 --- a/packages/realtime-compiler/src/ConsoleOutput.php +++ b/packages/realtime-compiler/src/ConsoleOutput.php @@ -28,9 +28,11 @@ public function printStartMessage(string $host, int $port): void $url = sprintf('%s://%s:%d', $port === 443 ? 'https' : 'http', $host, $port); $lines = [ + '', sprintf('%s %s', 'HydePHP Realtime Compiler', 'v'.Hyde::getInstance()->version()), '', sprintf('Listening on %s', $url, $url), + '', ]; $lineLength = max(array_map('strlen', array_map('strip_tags', $lines))); @@ -39,7 +41,7 @@ public function printStartMessage(string $host, int $port): void return sprintf(' │ %s%s│', $line, str_repeat(' ', ($lineLength - strlen(strip_tags($line))) + 1) ); - }, array_merge([''], $lines, [''])); + }, $lines); $topLine = sprintf(' ╭%s╮', str_repeat('─', $lineLength + 2)); $bottomLine = sprintf(' ╰%s╯', str_repeat('─', $lineLength + 2));