Code Duplication    Length = 6-6 lines in 2 locations

UnitOfWork.php 2 locations

@@ 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
    /**
@@ 1049-1054 (lines=6) @@
1046
                }
1047
                // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1048
                $oid = spl_object_hash($entity);
1049
                if (!isset($this->entityInsertions[$oid]) &&
1050
                    !isset($this->entityDeletions[$oid]) &&
1051
                    isset($this->entityStates[$oid])
1052
                ) {
1053
                    $this->computeChangeSet($class, $entity);
1054
                }
1055
            }
1056
        }
1057
    }