Code Duplication    Length = 6-6 lines in 2 locations

UnitOfWork.php 2 locations

@@ 1037-1042 (lines=6) @@
1034
                }
1035
                // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1036
                $oid = spl_object_hash($entity);
1037
                if (!isset($this->entityInsertions[$oid]) &&
1038
                    !isset($this->entityDeletions[$oid]) &&
1039
                    isset($this->entityStates[$oid])
1040
                ) {
1041
                    $this->computeChangeSet($class, $entity);
1042
                }
1043
            }
1044
        }
1045
    }
@@ 1524-1529 (lines=6) @@
1521
        }
1522
        // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1523
        $oid = spl_object_hash($entity);
1524
        if (!isset($this->entityInsertions[$oid]) &&
1525
            !isset($this->entityDeletions[$oid]) &&
1526
            isset($this->entityStates[$oid])
1527
        ) {
1528
            $this->computeChangeSet($class, $entity);
1529
        }
1530
    }
1531
1532
    /**