Code Duplication    Length = 6-6 lines in 2 locations

UnitOfWork.php 2 locations

@@ 1032-1037 (lines=6) @@
1029
                }
1030
                // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1031
                $oid = spl_object_hash($entity);
1032
                if (!isset($this->entityInsertions[$oid]) &&
1033
                    !isset($this->entityDeletions[$oid]) &&
1034
                    isset($this->entityStates[$oid])
1035
                ) {
1036
                    $this->computeChangeSet($class, $entity);
1037
                }
1038
            }
1039
        }
1040
    }
@@ 1478-1483 (lines=6) @@
1475
        }
1476
        // Only MANAGED entities that are NOT SCHEDULED FOR INSERTION OR DELETION are processed here.
1477
        $oid = spl_object_hash($entity);
1478
        if (!isset($this->entityInsertions[$oid]) &&
1479
            !isset($this->entityDeletions[$oid]) &&
1480
            isset($this->entityStates[$oid])
1481
        ) {
1482
            $this->computeChangeSet($class, $entity);
1483
        }
1484
    }
1485
1486
    /**