Skip to content

Commit

Permalink
Update Serve.php
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudLigny committed Jan 12, 2024
1 parent 1f6b57e commit 52b9212
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Command/Serve.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$output->writeln(sprintf('Starting server (<href=http://%s:%d>%s:%d</>)...', $host, $port, $host, $port));
$process->start(function ($type, $buffer) use (&$output) {

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 windows-latest false false false

Anonymous function has an unused use $output.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 macos-latest false false false

Anonymous function has an unused use $output.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 ubuntu-latest false false false

Anonymous function has an unused use $output.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 windows-latest false false false

Anonymous function has an unused use $output.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 macos-latest false false false

Anonymous function has an unused use $output.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 ubuntu-latest false false false

Anonymous function has an unused use $output.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 windows-latest false false false

Anonymous function has an unused use $output.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 macos-latest false false false

Anonymous function has an unused use $output.

Check notice on line 180 in src/Command/Serve.php

View check run for this annotation

Scrutinizer / Inspection

src/Command/Serve.php#L180

The import ``$output`` is not used and could be removed.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.1 ubuntu-latest true false false

Anonymous function has an unused use $output.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.2 ubuntu-latest false true false

Anonymous function has an unused use $output.

Check failure on line 180 in src/Command/Serve.php

View workflow job for this annotation

GitHub Actions / PHP 8.3 ubuntu-latest false false true

Anonymous function has an unused use $output.
if ($type === Process::ERR) {
$output->writeln($buffer, OutputInterface::VERBOSITY_DEBUG);
error_log($buffer, 3, Util::joinFile($this->getPath(), self::TMP_DIR, 'errors.log'));
}
});
if ($open) {
Expand Down Expand Up @@ -287,7 +287,7 @@ private function setUpServer(string $host, string $port): void
public function tearDownServer(): void
{
$this->output->writeln('');
$this->output->writeln('<comment>Server stopped.</comment>');
$this->output->writeln('<info>Server stopped.</info>');

try {
Util\File::getFS()->remove(Util::joinFile($this->getPath(), self::TMP_DIR));
Expand Down

0 comments on commit 52b9212

Please sign in to comment.