Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 1887-1889 (lines=3) @@
1884
            // Process UNIQUE settings:
1885
            // Field is NOT set for flexForms - which also means that uniqueInPid and unique is NOT available for flexForm fields! Also getUnique should not be done for versioning and if PID is -1 ($realPid<0) then versioning is happening...
1886
            if ($field && $realPid >= 0 && !empty($res['value'])) {
1887
                if (in_array('uniqueInPid', $evalCodesArray, true)) {
1888
                    $res['value'] = $this->getUnique($table, $field, $res['value'], $id, $realPid);
1889
                }
1890
                if ($res['value'] && in_array('unique', $evalCodesArray, true)) {
1891
                    $res['value'] = $this->getUnique($table, $field, $res['value'], $id);
1892
                }
@@ 1890-1892 (lines=3) @@
1887
                if (in_array('uniqueInPid', $evalCodesArray, true)) {
1888
                    $res['value'] = $this->getUnique($table, $field, $res['value'], $id, $realPid);
1889
                }
1890
                if ($res['value'] && in_array('unique', $evalCodesArray, true)) {
1891
                    $res['value'] = $this->getUnique($table, $field, $res['value'], $id);
1892
                }
1893
            }
1894
        }
1895