@@ -124,14 +124,14 @@ public function interact(InputInterface $input, ConsoleStyle $io, Command $comma
124
124
if (null === $ input ->getArgument ('controllerName ' )) {
125
125
$ input ->setArgument (
126
126
'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
+ ));
131
131
}
132
132
133
133
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? ' ));
135
135
}
136
136
137
137
$ this ->interactSetGenerateTests ($ input , $ io );
@@ -196,7 +196,7 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
196
196
);
197
197
198
198
$ testClassDetails = $ generator ->createClassNameDetails (
199
- $ controllerNameDetails ->getShortName () . 'Test ' ,
199
+ $ controllerNameDetails ->getShortName (). 'Test ' ,
200
200
'Test \\' ,
201
201
);
202
202
@@ -234,13 +234,16 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
234
234
]);
235
235
}
236
236
237
+ /**
238
+ * @return array<string, mixed> $items
239
+ */
237
240
private function getSecurityData (): array
238
241
{
239
- if (null === $ this ->securityData )
240
- {
242
+ if (null === $ this ->securityData ) {
241
243
$ this ->ysm = new YamlSourceManipulator ($ this ->fileManager ->getFileContents (self ::SECURITY_CONFIG_PATH ));
242
244
$ this ->securityData = $ this ->ysm ->getData ();
243
245
}
246
+
244
247
return $ this ->securityData ;
245
248
}
246
249
}
0 commit comments