@@ -377,11 +377,9 @@ protected function initializeDeleteAction()
377
377
/**
378
378
* Check if user is authenticated and params are valid
379
379
*
380
- * @param User $user
381
380
* @param int $uid Given fe_users uid
382
- * @param string $receivedToken Token
383
381
*/
384
- protected function testSpoof ($ user , $ uid , $ receivedToken )
382
+ protected function testSpoof (User $ user , int $ uid , string $ receivedToken ): ResponseInterface
385
383
{
386
384
$ errorOnProfileUpdate = false ;
387
385
$ knownToken = GeneralUtility::hmac ($ user ->getUid (), (string )$ user ->getCrdate ()->getTimestamp ());
@@ -428,7 +426,7 @@ public function assignForAll()
428
426
);
429
427
}
430
428
431
- public function initializeAction ()
429
+ public function initializeAction (): void
432
430
{
433
431
$ this ->user = UserUtility::getCurrentUser ();
434
432
$ this ->contentObject = $ this ->configurationManager ->getContentObject ();
@@ -444,23 +442,23 @@ public function initializeAction()
444
442
$ this ->config = $ this ->config [BackendUtility::getPluginOrModuleString () . '. ' ]['tx_femanager. ' ]['settings. ' ] ?? [];
445
443
446
444
if (ApplicationType::fromRequest ($ GLOBALS ['TYPO3_REQUEST ' ])->isBackend ()) {
447
- $ config = BackendUtility::loadTS ($ this ->allConfig ['settings ' ]['configPID ' ]);
445
+ $ config = BackendUtility::loadTS ($ this ->allConfig ['settings ' ]['configPID ' ] ?? null );
448
446
if (is_array ($ config ['plugin. ' ]['tx_femanager. ' ]['settings. ' ] ?? null )) {
449
447
$ this ->config = $ config ['plugin. ' ]['tx_femanager. ' ]['settings. ' ];
450
448
$ this ->settings = $ this ->config ;
451
449
}
452
450
453
- $ this ->moduleConfig = $ config ['module. ' ]['tx_femanager. ' ] ?? '' ;
451
+ $ this ->moduleConfig = $ config ['module. ' ]['tx_femanager. ' ] ?? [] ;
454
452
455
453
// Retrieve page TSconfig of the current page
456
454
$ pageTsConfig = BackendUtilityCore::getPagesTSconfig (BackendUtility::getPageIdentifier ());
457
- if (is_array ($ pageTsConfig ['module. ' ]['tx_femanager. ' ] ?? null )) {
455
+ if (is_array ($ pageTsConfig ['module. ' ]['tx_femanager. ' ] ?? [] )) {
458
456
$ this ->moduleConfig = array_merge ($ this ->moduleConfig , $ pageTsConfig ['module. ' ]['tx_femanager. ' ] ?? []);
459
457
}
460
458
461
459
// Retrieve user TSconfig of currently logged in user
462
460
$ userTsConfig = $ GLOBALS ['BE_USER ' ]->getTSConfig ();
463
- if (is_array ($ userTsConfig ['tx_femanager. ' ] ?? null )) {
461
+ if (is_array ($ userTsConfig ['tx_femanager. ' ] ?? [] )) {
464
462
$ this ->moduleConfig = array_merge_recursive ($ this ->moduleConfig , $ userTsConfig ['tx_femanager. ' ] ?? []);
465
463
}
466
464
}
0 commit comments