Code Duplication    Length = 4-4 lines in 3 locations

typo3/sysext/core/Classes/DataHandling/DataHandler.php 3 locations

@@ 832-835 (lines=4) @@
829
        }
830
831
        // Editing frozen:
832
        if ($this->BE_USER->workspace !== 0 && $this->BE_USER->workspaceRec['freeze']) {
833
            $this->newlog('All editing in this workspace has been frozen!', 1);
834
            return;
835
        }
836
        $subA = reset($postFiles);
837
        if (is_array($subA)) {
838
            if (is_array($subA['name']) && is_array($subA['type']) && is_array($subA['tmp_name']) && is_array($subA['size'])) {
@@ 949-952 (lines=4) @@
946
        $this->registerElementsToBeDeleted();
947
        $this->datamap = $this->unsetElementsToBeDeleted($this->datamap);
948
        // Editing frozen:
949
        if ($this->BE_USER->workspace !== 0 && $this->BE_USER->workspaceRec['freeze']) {
950
            $this->newlog('All editing in this workspace has been frozen!', 1);
951
            return false;
952
        }
953
        // First prepare user defined objects (if any) for hooks which extend this function:
954
        $hookObjectsArr = [];
955
        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processDatamapClass'] ?? [] as $className) {
@@ 3259-3262 (lines=4) @@
3256
    public function process_cmdmap()
3257
    {
3258
        // Editing frozen:
3259
        if ($this->BE_USER->workspace !== 0 && $this->BE_USER->workspaceRec['freeze']) {
3260
            $this->newlog('All editing in this workspace has been frozen!', 1);
3261
            return false;
3262
        }
3263
        // Hook initialization:
3264
        $hookObjectsArr = [];
3265
        foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['t3lib/class.t3lib_tcemain.php']['processCmdmapClass'] ?? [] as $className) {