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
    }
@@ 1564-1569 (lines=6) @@
1561
        }
1562
        // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1563
        $oid = spl_object_hash($entity);
1564
        if (!isset($this->entityInsertions[$oid]) &&
1565
            !isset($this->entityDeletions[$oid]) &&
1566
            isset($this->entityStates[$oid])
1567
        ) {
1568
            $this->computeChangeSet($class, $entity);
1569
        }
1570
    }
1571
1572
    /**