Skip to content

Commit

Permalink
Fix code style
Browse files Browse the repository at this point in the history
  • Loading branch information
shuraknows committed Feb 3, 2024
1 parent f1397ca commit 3185696
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Command/AddUserCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ protected function interact(InputInterface $input, OutputInterface $output): voi

// Ask for the email if it's not defined
$email = $input->getArgument('email');

if (null !== $email) {
$this->io->text(' > <info>Email</info>: '.$email);
} else {
Expand All @@ -147,6 +148,7 @@ protected function interact(InputInterface $input, OutputInterface $output): voi

// Ask for the full name if it's not defined
$fullName = $input->getArgument('full-name');

if (null !== $fullName) {
$this->io->text(' > <info>Full Name</info>: '.$fullName);
} else {
Expand Down Expand Up @@ -198,6 +200,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$this->io->success(sprintf('%s was successfully created: %s (%s)', $isAdmin ? 'Administrator user' : 'User', $user->getUsername(), $user->getEmail()));

$event = $stopwatch->stop('add-user-command');

if ($output->isVerbose()) {
$this->io->comment(sprintf('New user database id: %d / Elapsed time: %.2f ms / Consumed memory: %.2f MB', $user->getId(), $event->getDuration(), $event->getMemory() / (1024 ** 2)));
}
Expand Down
1 change: 1 addition & 0 deletions src/Twig/SourceCodeExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ private function unindentCode(string $code): string
});

$codeIsIndented = \count($indentedOrBlankLines) === \count($codeLines);

if ($codeIsIndented) {
$unindentedLines = array_map(static function ($lineOfCode) {
return u($lineOfCode)->after(' ');
Expand Down

0 comments on commit 3185696

Please sign in to comment.