Code Duplication    Length = 6-6 lines in 2 locations

UnitOfWork.php 2 locations

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