@@ -124,14 +124,14 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
124124 if (null === $ input ->getArgument ('controllerName ' )) {
125125 $ input ->setArgument (
126126 'controllerName ' , $ input ->getArgument ('controllerName ' ) ?? $ io ->ask (
127- 'Choose a name for the controller class (e.g. <fg=yellow>SecurityController</>) ' ,
128- 'SecurityController ' ,
129- Validator::validateClassName (...)
130- ));
127+ 'Choose a name for the controller class (e.g. <fg=yellow>SecurityController</>) ' ,
128+ 'SecurityController ' ,
129+ Validator::validateClassName (...)
130+ ));
131131 }
132132
133133 if (false === $ input ->getOption ('will-logout ' )) {
134- $ input ->setOption ('will-logout ' ,$ io ->confirm ('Do you want to generate a \'/logout \' URL? ' ));
134+ $ input ->setOption ('will-logout ' , $ io ->confirm ('Do you want to generate a \'/logout \' URL? ' ));
135135 }
136136
137137 $ this ->interactSetGenerateTests ($ input , $ io );
@@ -196,7 +196,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
196196 );
197197
198198 $ testClassDetails = $ generator ->createClassNameDetails (
199- $ controllerNameDetails ->getShortName () . 'Test ' ,
199+ $ controllerNameDetails ->getShortName (). 'Test ' ,
200200 'Test \\' ,
201201 );
202202
@@ -234,13 +234,16 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
234234 ]);
235235 }
236236
237+ /**
238+ * @return array<string, mixed> $items
239+ */
237240 private function getSecurityData (): array
238241 {
239- if (null === $ this ->securityData )
240- {
242+ if (null === $ this ->securityData ) {
241243 $ this ->ysm = new YamlSourceManipulator ($ this ->fileManager ->getFileContents (self ::SECURITY_CONFIG_PATH ));
242244 $ this ->securityData = $ this ->ysm ->getData ();
243245 }
246+
244247 return $ this ->securityData ;
245248 }
246249}
0 commit comments