Code Duplication    Length = 5-5 lines in 3 locations

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

@@ 5880-5884 (lines=5) @@
5877
     */
5878
    public function version_remapMMForVersionSwap_execSwap($table, $id, $swapWith)
5879
    {
5880
        if (is_array($this->version_remapMMForVersionSwap_reg[$id])) {
5881
            foreach ($this->version_remapMMForVersionSwap_reg[$id] as $field => $str) {
5882
                $str[0]->remapMM($str[1], $id, -$id, $str[2]);
5883
            }
5884
        }
5885
        if (is_array($this->version_remapMMForVersionSwap_reg[$swapWith])) {
5886
            foreach ($this->version_remapMMForVersionSwap_reg[$swapWith] as $field => $str) {
5887
                $str[0]->remapMM($str[1], $swapWith, $id, $str[2]);
@@ 5885-5889 (lines=5) @@
5882
                $str[0]->remapMM($str[1], $id, -$id, $str[2]);
5883
            }
5884
        }
5885
        if (is_array($this->version_remapMMForVersionSwap_reg[$swapWith])) {
5886
            foreach ($this->version_remapMMForVersionSwap_reg[$swapWith] as $field => $str) {
5887
                $str[0]->remapMM($str[1], $swapWith, $id, $str[2]);
5888
            }
5889
        }
5890
        if (is_array($this->version_remapMMForVersionSwap_reg[$id])) {
5891
            foreach ($this->version_remapMMForVersionSwap_reg[$id] as $field => $str) {
5892
                $str[0]->remapMM($str[1], -$id, $swapWith, $str[2]);
@@ 5890-5894 (lines=5) @@
5887
                $str[0]->remapMM($str[1], $swapWith, $id, $str[2]);
5888
            }
5889
        }
5890
        if (is_array($this->version_remapMMForVersionSwap_reg[$id])) {
5891
            foreach ($this->version_remapMMForVersionSwap_reg[$id] as $field => $str) {
5892
                $str[0]->remapMM($str[1], -$id, $swapWith, $str[2]);
5893
            }
5894
        }
5895
    }
5896
5897
    /*********************************************