From 9529eda5f4a4bf733257b3ded2cfad1f68711f29 Mon Sep 17 00:00:00 2001 From: eltharin Date: Tue, 17 Sep 2024 11:24:48 +0200 Subject: [PATCH] cs update phpstan --- src/Maker/Security/MakeFormLogin.php | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/src/Maker/Security/MakeFormLogin.php b/src/Maker/Security/MakeFormLogin.php index 66ad92152..bcfa01e59 100644 --- a/src/Maker/Security/MakeFormLogin.php +++ b/src/Maker/Security/MakeFormLogin.php @@ -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( - 'Choose a name for the controller class (e.g. SecurityController)', - 'SecurityController', - Validator::validateClassName(...) - )); + 'Choose a name for the controller class (e.g. 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); @@ -196,7 +196,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen ); $testClassDetails = $generator->createClassNameDetails( - $controllerNameDetails->getShortName() . 'Test', + $controllerNameDetails->getShortName().'Test', 'Test\\', ); @@ -234,13 +234,16 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen ]); } + /** + * @return array $items + */ private function getSecurityData(): 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; } }