Commit 61d3726a authored by Stefan Busemann's avatar Stefan Busemann
Browse files

[BUGFIX] correct coding style

parent 6785b76e
Pipeline #5060 passed with stages
in 3 minutes and 17 seconds
...@@ -41,7 +41,6 @@ class ReactivateUserHook ...@@ -41,7 +41,6 @@ class ReactivateUserHook
*/ */
public function reactivateOldUser() public function reactivateOldUser()
{ {
$this->objectManager = GeneralUtility::makeInstance(ObjectManager::class); $this->objectManager = GeneralUtility::makeInstance(ObjectManager::class);
$this->persistenceManager = $this->objectManager->get(PersistenceManager::class); $this->persistenceManager = $this->objectManager->get(PersistenceManager::class);
$this->oldUserRepository = $this->objectManager->get(OldUserRepository::class); $this->oldUserRepository = $this->objectManager->get(OldUserRepository::class);
...@@ -54,8 +53,7 @@ class ReactivateUserHook ...@@ -54,8 +53,7 @@ class ReactivateUserHook
if ($this->recoverUser($oldUser)) { if ($this->recoverUser($oldUser)) {
$this->oldUserRepository->remove($oldUser); $this->oldUserRepository->remove($oldUser);
$this->persistenceManager->persistAll(); $this->persistenceManager->persistAll();
\TYPO3\CMS\Core\Utility\HttpUtility::redirect($_SERVER['HTTP_ORIGIN'] . '/?id=12&tx_felogin_pi1%5Bforgot%5D=1', \TYPO3\CMS\Core\Utility\HttpUtility::redirect($_SERVER['HTTP_ORIGIN'] . '/?id=12&tx_felogin_pi1%5Bforgot%5D=1', \TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_303);
\TYPO3\CMS\Core\Utility\HttpUtility::HTTP_STATUS_303);
} }
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment