Skip to content

Commit baacf87

Browse files
committed
more cleanup
1 parent 7b47af4 commit baacf87

File tree

4 files changed

+3
-10
lines changed

4 files changed

+3
-10
lines changed

src/Maker/MakeRegistrationForm.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ final class MakeRegistrationForm extends AbstractMaker
7070
private $userClass;
7171
private $usernameField;
7272
private $passwordField;
73-
private bool $willVerifyEmail = false;
74-
private bool $verifyEmailAnonymously = false;
73+
private $willVerifyEmail = false;
74+
private $verifyEmailAnonymously = false;
7575
private $idGetter;
7676
private $emailGetter;
7777
private $fromEmailAddress;
@@ -80,7 +80,7 @@ final class MakeRegistrationForm extends AbstractMaker
8080
private $firewallName;
8181
private $redirectRouteName;
8282
private $addUniqueEntityConstraint;
83-
private bool $useNewAuthenticatorSystem = false;
83+
private $useNewAuthenticatorSystem = false;
8484

8585
public function __construct(
8686
private FileManager $fileManager,
@@ -109,7 +109,6 @@ public function configureCommand(Command $command, InputConfiguration $inputConf
109109

110110
public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void
111111
{
112-
$emailText = [];
113112
$interactiveSecurityHelper = new InteractiveSecurityHelper();
114113

115114
if (!$this->fileManager->fileExists($path = 'config/packages/security.yaml')) {
@@ -416,7 +415,6 @@ public function generate(InputInterface $input, ConsoleStyle $io, Generator $gen
416415

417416
private function successMessage(ConsoleStyle $io, bool $emailVerification, string $userClass): void
418417
{
419-
$closing = [];
420418
$closing[] = 'Next:';
421419

422420
if (!$emailVerification) {

src/Maker/MakeResetPassword.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public function configureDependencies(DependencyBuilder $dependencies): void
131131

132132
public function interact(InputInterface $input, ConsoleStyle $io, Command $command): void
133133
{
134-
$emailText = [];
135134
$io->title('Let\'s make a password reset feature!');
136135

137136
$interactiveSecurityHelper = new InteractiveSecurityHelper();
@@ -383,7 +382,6 @@ private function setBundleConfig(ConsoleStyle $io, Generator $generator, string
383382

384383
private function successMessage(InputInterface $input, ConsoleStyle $io, string $requestClassName): void
385384
{
386-
$closing = [];
387385
$closing[] = 'Next:';
388386
$closing[] = sprintf(' 1) Run <fg=yellow>"php bin/console make:migration"</> to generate a migration for the new <fg=yellow>"%s"</> entity.', $requestClassName);
389387
$closing[] = ' 2) Review forms in <fg=yellow>"src/Form"</> to customize validation and labels.';

src/Maker/MakeUser.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ class_exists(DoctrineBundle::class)
114114

115115
public function generate(InputInterface $input, ConsoleStyle $io, Generator $generator): void
116116
{
117-
$customProviderPath = null;
118117
$userClassConfiguration = new UserClassConfiguration(
119118
$input->getOption('is-entity'),
120119
$input->getOption('identity-property-name'),

src/Util/MakerFileLinkFormatter.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ public function __construct(private ?FileLinkFormatter $fileLinkFormatter = null
2525
if (0 === \func_num_args()) {
2626
throw new \LogicException('$fileLinkFormatter argument is required');
2727
}
28-
29-
$this->fileLinkFormatter = $fileLinkFormatter;
3028
}
3129

3230
public function makeLinkedPath(string $absolutePath, string $relativePath): string

0 commit comments

Comments
 (0)