Code Duplication    Length = 4-4 lines in 2 locations

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

@@ 1003-1006 (lines=4) @@
1000
        } elseif ($conf['foreign_default_sortby']) {
1001
            // Specific default sortby for data handled by this field
1002
            $sortby = $conf['foreign_default_sortby'];
1003
        } elseif ($GLOBALS['TCA'][$foreign_table]['ctrl']['sortby']) {
1004
            // Manual sortby for all table records
1005
            $sortby = $GLOBALS['TCA'][$foreign_table]['ctrl']['sortby'];
1006
        } elseif ($GLOBALS['TCA'][$foreign_table]['ctrl']['default_sortby']) {
1007
            // Default sortby for all table records
1008
            $sortby = $GLOBALS['TCA'][$foreign_table]['ctrl']['default_sortby'];
1009
        }
@@ 1113-1116 (lines=4) @@
1110
                        $sortby = '';
1111
                        if ($conf['foreign_sortby']) {
1112
                            $sortby = $conf['foreign_sortby'];
1113
                        } elseif ($GLOBALS['TCA'][$foreign_table]['ctrl']['sortby']) {
1114
                            // manual sortby for all table records
1115
                            $sortby = $GLOBALS['TCA'][$foreign_table]['ctrl']['sortby'];
1116
                        }
1117
                        // Apply sorting on the symmetric side
1118
                        // (it depends on who created the relation, so what uid is in the symmetric_field):
1119
                        if ($isOnSymmetricSide && isset($conf['symmetric_sortby']) && $conf['symmetric_sortby']) {