Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 682e186a authored by theronakpatel's avatar theronakpatel
Browse files

return changes, parent-construct at first line

parent 549a1edd
Loading
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -27,11 +27,11 @@ class FixMissingEmails extends Command {
		IDBConnection $dbConnection,
		IUserManager $userManager
	) {
		parent::__construct();
		$this->ldapConnectionService = $ldapConnectionService;
		$this->userService = $userService;
		$this->dbConnection = $dbConnection;
		$this->userManager = $userManager;
		parent::__construct();
	}

	protected function configure(): void {
@@ -166,8 +166,8 @@ class FixMissingEmails extends Command {
		if (!$isDryRun) {
			$this->userService->setUserEmail($username, $mailAddress);
			$output->writeln(sprintf('  <info>Email set successfully for user: %s</info>', $username));
		} else {
			$output->writeln(sprintf('  <comment>Would set email to: %s</comment>', $mailAddress));
			return;
		}
		$output->writeln(sprintf('  <comment>Would set email to: %s</comment>', $mailAddress));
	}
}