Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 566-570 (lines=5) @@
563
                QueryHelper::stripLogicalOperatorPrefix(str_replace('###THIS_UID###', (int)$uid, $this->MM_table_where))
564
            );
565
        }
566
        foreach ($this->MM_match_fields as $field => $value) {
567
            $queryBuilder->andWhere(
568
                $queryBuilder->expr()->eq($field, $queryBuilder->createNamedParameter($value, \PDO::PARAM_STR))
569
            );
570
        }
571
        $queryBuilder->andWhere(
572
            $queryBuilder->expr()->eq(
573
                $uidLocal_field,
@@ 885-889 (lines=5) @@
882
                );
883
            }
884
            // Select, update or delete only those relations that match the configured fields
885
            foreach ($this->MM_match_fields as $field => $value) {
886
                $queryBuilder->andWhere(
887
                    $queryBuilder->expr()->eq($field, $queryBuilder->createNamedParameter($value, \PDO::PARAM_STR))
888
                );
889
            }
890
            $queryBuilder->execute();
891
        }
892
    }