Skip to content

Commit

Permalink
Merge pull request #129 from jolicode/initial-castor-file-cs
Browse files Browse the repository at this point in the history
Fix CS on initial castor.php creation
  • Loading branch information
lyrixx committed Jun 20, 2023
2 parents afd3993 + db1e72d commit b48d3e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Console/Command/CastorFileNotFoundCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,14 @@ protected function execute(InputInterface $input, OutputInterface $output): int
<?php
use Castor\Attribute\AsTask;
use Symfony\Component\Console\Style\SymfonyStyle;
use function Castor\io;
use function Castor\run;
use function Castor\capture;
#[AsTask(description: 'Welcome to Castor!')]
function hello(): void
{
$currentUser = trim(run('whoami', quiet: true)->getOutput());
$currentUser = capture('whoami');
io()->title(sprintf('Hello %s!', $currentUser));
}
Expand Down

0 comments on commit b48d3e4

Please sign in to comment.