Code Duplication    Length = 3-3 lines in 2 locations

typo3/sysext/core/Classes/Database/ReferenceIndex.php 2 locations

@@ 699-701 (lines=3) @@
696
                    }
697
                }
698
                // Add a softref definition for link fields if the TCA does not specify one already
699
                if ($conf['type'] === 'input' && $conf['renderType'] === 'inputLink' && empty($conf['softref'])) {
700
                    $conf['softref'] = 'typolink';
701
                }
702
                // Add DB:
703
                $resultsFromDatabase = $this->getRelations_procDB($value, $conf, $uid, $table);
704
                if (!empty($resultsFromDatabase)) {
@@ 805-807 (lines=3) @@
802
            }
803
        }
804
        // Add a softref definition for link fields if the TCA does not specify one already
805
        if ($dsConf['type'] === 'input' && $dsConf['renderType'] === 'inputLink' && empty($dsConf['softref'])) {
806
            $dsConf['softref'] = 'typolink';
807
        }
808
        // Add DB:
809
        $resultsFromDatabase = $this->getRelations_procDB($dataValue, $dsConf, $uid, $table);
810
        if (!empty($resultsFromDatabase)) {