Code Duplication    Length = 6-6 lines in 2 locations

UnitOfWork.php 2 locations

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