[TASK] Use name-resolution instead of strings where possible: 12
[Packages/TYPO3.CMS.git] / typo3 / sysext / scheduler / Classes / Task / CachingFrameworkGarbageCollectionAdditionalFieldProvider.php
index 6b658b3..d70c0c3 100644 (file)
@@ -36,8 +36,8 @@ class CachingFrameworkGarbageCollectionAdditionalFieldProvider implements \TYPO3
                        $taskInfo['scheduler_cachingFrameworkGarbageCollection_selectedBackends'] = array();
                        if ($parentObject->CMD === 'add') {
                                // In case of new task, set to dbBackend if it's available
                        $taskInfo['scheduler_cachingFrameworkGarbageCollection_selectedBackends'] = array();
                        if ($parentObject->CMD === 'add') {
                                // In case of new task, set to dbBackend if it's available
-                               if (in_array('TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend', $this->getRegisteredBackends())) {
-                                       $taskInfo['scheduler_cachingFrameworkGarbageCollection_selectedBackends'][] = 'TYPO3\\CMS\\Core\\Cache\\Backend\\Typo3DatabaseBackend';
+                               if (in_array(\TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class, $this->getRegisteredBackends())) {
+                                       $taskInfo['scheduler_cachingFrameworkGarbageCollection_selectedBackends'][] = \TYPO3\CMS\Core\Cache\Backend\Typo3DatabaseBackend::class;
                                }
                        } elseif ($parentObject->CMD === 'edit') {
                                // In case of editing the task, set to currently selected value
                                }
                        } elseif ($parentObject->CMD === 'edit') {
                                // In case of editing the task, set to currently selected value
@@ -62,7 +62,7 @@ class CachingFrameworkGarbageCollectionAdditionalFieldProvider implements \TYPO3
         *
         * @param array $submittedData Reference to the array containing the data submitted by the user
         * @param \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject Reference to the calling object (Scheduler's BE module)
         *
         * @param array $submittedData Reference to the array containing the data submitted by the user
         * @param \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject Reference to the calling object (Scheduler's BE module)
-        * @return boolean TRUE if validation was ok (or selected class is not relevant), FALSE otherwise
+        * @return bool TRUE if validation was ok (or selected class is not relevant), FALSE otherwise
         */
        public function validateAdditionalFields(array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject) {
                $validData = TRUE;
         */
        public function validateAdditionalFields(array &$submittedData, \TYPO3\CMS\Scheduler\Controller\SchedulerModuleController $parentObject) {
                $validData = TRUE;