Code Duplication    Length = 6-6 lines in 2 locations

UnitOfWork.php 2 locations

@@ 1039-1044 (lines=6) @@
1036
                }
1037
                // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1038
                $oid = spl_object_hash($entity);
1039
                if (!isset($this->entityInsertions[$oid]) &&
1040
                    !isset($this->entityDeletions[$oid]) &&
1041
                    isset($this->entityStates[$oid])
1042
                ) {
1043
                    $this->computeChangeSet($class, $entity);
1044
                }
1045
            }
1046
        }
1047
    }
@@ 1565-1570 (lines=6) @@
1562
        }
1563
        // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1564
        $oid = spl_object_hash($entity);
1565
        if (!isset($this->entityInsertions[$oid]) &&
1566
            !isset($this->entityDeletions[$oid]) &&
1567
            isset($this->entityStates[$oid])
1568
        ) {
1569
            $this->computeChangeSet($class, $entity);
1570
        }
1571
    }
1572
1573
    /**