Code Duplication    Length = 6-6 lines in 2 locations

UnitOfWork.php 2 locations

@@ 1036-1041 (lines=6) @@
1033
                }
1034
                // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1035
                $oid = spl_object_hash($entity);
1036
                if (!isset($this->entityInsertions[$oid]) &&
1037
                    !isset($this->entityDeletions[$oid]) &&
1038
                    isset($this->entityStates[$oid])
1039
                ) {
1040
                    $this->computeChangeSet($class, $entity);
1041
                }
1042
            }
1043
        }
1044
    }
@@ 1554-1559 (lines=6) @@
1551
        }
1552
        // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1553
        $oid = spl_object_hash($entity);
1554
        if (!isset($this->entityInsertions[$oid]) &&
1555
            !isset($this->entityDeletions[$oid]) &&
1556
            isset($this->entityStates[$oid])
1557
        ) {
1558
            $this->computeChangeSet($class, $entity);
1559
        }
1560
    }
1561
1562
    /**