Code Duplication    Length = 6-6 lines in 2 locations

UnitOfWork.php 2 locations

@@ 1038-1043 (lines=6) @@
1035
                }
1036
                // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1037
                $oid = spl_object_hash($entity);
1038
                if (!isset($this->entityInsertions[$oid]) &&
1039
                    !isset($this->entityDeletions[$oid]) &&
1040
                    isset($this->entityStates[$oid])
1041
                ) {
1042
                    $this->computeChangeSet($class, $entity);
1043
                }
1044
            }
1045
        }
1046
    }
@@ 1573-1578 (lines=6) @@
1570
        }
1571
        // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1572
        $oid = spl_object_hash($entity);
1573
        if (!isset($this->entityInsertions[$oid]) &&
1574
            !isset($this->entityDeletions[$oid]) &&
1575
            isset($this->entityStates[$oid])
1576
        ) {
1577
            $this->computeChangeSet($class, $entity);
1578
        }
1579
    }
1580
1581
    /**