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 Nov 8, 2023
1 parent 63891aa commit c381f71
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/framework/src/Console/Commands/ServeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,17 @@ protected function printStartMessage(): void
if ($this->option('fancy')) {
$this->line('<info>Starting the HydeRC server...</info> Press Ctrl+C to stop');
} else {

$title = 'HydePHP Realtime Compiler';
$version = ' v' . Hyde::version();
$version = ' v'.Hyde::version();

$url = sprintf('http://%s:%d', $this->getHostSelection(), $this->getPortSelection());

$width = max(strlen("$title $version"), strlen("Listening on $url") +1) + 1;
$width = max(strlen("$title $version"), strlen("Listening on $url") + 1) + 1;
$spacing = str_repeat('&nbsp;', $width);
$lines = str_repeat('', $width);

$line1 = '&nbsp;'. sprintf('<span class="text-blue-500">%s</span>&nbsp;<span class="text-gray">%s</span>', $title, $version) . str_repeat('&nbsp;', $width - strlen("$title $version"));
$line2 = '&nbsp;'. sprintf('<span class="text-white">Listening on </span>&nbsp;<a href="%s" class="text-yellow-500">%s</a>', $url, $url). str_repeat('&nbsp;', $width - strlen("Listening on $url") - 1);
$line1 = '&nbsp;'.sprintf('<span class="text-blue-500">%s</span>&nbsp;<span class="text-gray">%s</span>', $title, $version).str_repeat('&nbsp;', $width - strlen("$title $version"));
$line2 = '&nbsp;'.sprintf('<span class="text-white">Listening on </span>&nbsp;<a href="%s" class="text-yellow-500">%s</a>', $url, $url).str_repeat('&nbsp;', $width - strlen("Listening on $url") - 1);
render(<<<HTML
<div class="text-green-500">
<br>
Expand Down

0 comments on commit c381f71

Please sign in to comment.