Skip to content
Open
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
4 changes: 2 additions & 2 deletions src/think/console/command/RunServer.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?php

Check warning on line 1 in src/think/console/command/RunServer.php

View workflow job for this annotation

GitHub Actions / php-cs-fixer

Found violation(s) of type: declare_parentheses

Check warning on line 1 in src/think/console/command/RunServer.php

View workflow job for this annotation

GitHub Actions / php-cs-fixer

Found violation(s) of type: declare_equal_normalize

Check warning on line 1 in src/think/console/command/RunServer.php

View workflow job for this annotation

GitHub Actions / php-cs-fixer

Found violation(s) of type: multiline_whitespace_before_semicolons

Check warning on line 1 in src/think/console/command/RunServer.php

View workflow job for this annotation

GitHub Actions / php-cs-fixer

Found violation(s) of type: blank_line_after_opening_tag
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
Expand Down Expand Up @@ -48,8 +48,8 @@

public function execute(Input $input, Output $output)
{
$host = $input->getOption('host');
$port = $input->getOption('port');
$host = $input->getOption('host') ?: env('server.host', '0.0.0.0');
$port = $input->getOption('port') ?: env('server.port', 8000);
$root = $input->getOption('root');
if (empty($root)) {
$root = $this->app->getRootPath() . 'public';
Expand Down
Loading