[TASK] Use name-resolution instead of strings where possible: 13
[Packages/TYPO3.CMS.git] / typo3 / sysext / taskcenter / ext_tables.php
index e69f195..b94f38b 100644 (file)
@@ -1,7 +1,6 @@
 <?php
-if (!defined('TYPO3_MODE')) {
-       die('Access denied.');
-}
+defined('TYPO3_MODE') or die();
+
 if (TYPO3_MODE === 'BE') {
        \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::addModulePath(
                'tools_txtaskcenterM1',
@@ -13,6 +12,14 @@ if (TYPO3_MODE === 'BE') {
                'top',
                \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath($_EXTKEY) . 'task/'
        );
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('Taskcenter::saveCollapseState', 'TYPO3\\CMS\\Taskcenter\\TaskStatus->saveCollapseState');
-       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler('Taskcenter::saveSortingState', 'TYPO3\\CMS\\Taskcenter\\TaskStatus->saveSortingState');
+
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler(
+               'Taskcenter::saveCollapseState',
+               \TYPO3\CMS\Taskcenter\TaskStatus::class . '->saveCollapseState'
+       );
+
+       \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::registerAjaxHandler(
+               'Taskcenter::saveSortingState',
+               \TYPO3\CMS\Taskcenter\TaskStatus::class . '->saveSortingState'
+       );
 }