Skip to content

Commit f91a84a

Browse files
committed
♻️ swicthed to single quotes
1 parent 133ab69 commit f91a84a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/ServeCommand.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,20 @@ class ServeCommand extends Command
1515
protected function configure()
1616
{
1717
$this
18-
->setHelp("Start the leaf app server")
19-
->setDescription("Run your Leaf app")
18+
->setHelp('Start the leaf app server')
19+
->setDescription('Run your Leaf app')
2020
->addOption('port', 'p', InputOption::VALUE_OPTIONAL, 'Port to run app on');
2121
}
2222

2323
protected function execute(InputInterface $input, OutputInterface $output): int
2424
{
25-
$port = $input->getOption("port") ? (int) $input->getOption("port") : 5500;
25+
$port = $input->getOption('port') ? (int) $input->getOption('port') : 5500;
2626
$process = Process::fromShellCommandline("php -S localhost:$port", null, null, null, null);
2727

2828
return $process->run(function ($type, $line) use ($output, $port) {
2929
if (is_string($line) && !strpos($line, 'Failed')) {
3030
$output->writeln("<info>Leaf development server started: http://localhost:$port</info>");
31-
$output->writeln("<comment>Happy coding!</comment>");
31+
$output->writeln('<comment>Happy coding!</comment>');
3232
$output->write($line);
3333
} else {
3434
$output->write("<error>$line</error>");

0 commit comments

Comments
 (0)