Skip to content

Commit

Permalink
cs update
Browse files Browse the repository at this point in the history
  • Loading branch information
eltharin committed Sep 17, 2024
1 parent 3890465 commit c7c8f6a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/Maker/Security/MakeFormLogin.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,14 +124,14 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
if (null === $input->getArgument('controllerName')) {
$input->setArgument(
'controllerName', $input->getArgument('controllerName') ?? $io->ask(

Check failure on line 126 in src/Maker/Security/MakeFormLogin.php

View workflow job for this annotation

GitHub Actions / PHPStan

Expression on left side of ?? is always null.
'Choose a name for the controller class (e.g. <fg=yellow>SecurityController</>)',
'SecurityController',
Validator::validateClassName(...)
));
'Choose a name for the controller class (e.g. <fg=yellow>SecurityController</>)',
'SecurityController',
Validator::validateClassName(...)
));
}

if (false === $input->getOption('will-logout')) {
$input->setOption('will-logout',$io->confirm('Do you want to generate a \'/logout\' URL?'));
$input->setOption('will-logout', $io->confirm('Do you want to generate a \'/logout\' URL?'));
}

$this->interactSetGenerateTests($input, $io);
Expand Down Expand Up @@ -196,7 +196,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
);

$testClassDetails = $generator->createClassNameDetails(
$controllerNameDetails->getShortName() . 'Test',
$controllerNameDetails->getShortName().'Test',
'Test\\',
);

Expand Down Expand Up @@ -236,11 +236,11 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen

private function getSecurityData(): array

Check failure on line 237 in src/Maker/Security/MakeFormLogin.php

View workflow job for this annotation

GitHub Actions / PHPStan

Method Symfony\Bundle\MakerBundle\Maker\Security\MakeFormLogin::getSecurityData() return type has no value type specified in iterable type array.
{
if (null === $this->securityData)
{
if (null === $this->securityData) {
$this->ysm = new YamlSourceManipulator($this->fileManager->getFileContents(self::SECURITY_CONFIG_PATH));
$this->securityData = $this->ysm->getData();
}

return $this->securityData;
}
}

0 comments on commit c7c8f6a

Please sign in to comment.