Code Duplication    Length = 4-4 lines in 3 locations

lib/Doctrine/ODM/MongoDB/Mapping/ClassMetadata.php 3 locations

@@ 2023-2026 (lines=4) @@
2020
        $mapping['isOwningSide'] = true;
2021
        $mapping['isInverseSide'] = false;
2022
        if (isset($mapping['reference'])) {
2023
            if (isset($mapping['inversedBy']) && $mapping['inversedBy']) {
2024
                $mapping['isOwningSide'] = true;
2025
                $mapping['isInverseSide'] = false;
2026
            }
2027
            if (isset($mapping['mappedBy']) && $mapping['mappedBy']) {
2028
                $mapping['isInverseSide'] = true;
2029
                $mapping['isOwningSide'] = false;
@@ 2027-2030 (lines=4) @@
2024
                $mapping['isOwningSide'] = true;
2025
                $mapping['isInverseSide'] = false;
2026
            }
2027
            if (isset($mapping['mappedBy']) && $mapping['mappedBy']) {
2028
                $mapping['isInverseSide'] = true;
2029
                $mapping['isOwningSide'] = false;
2030
            }
2031
            if (isset($mapping['repositoryMethod'])) {
2032
                $mapping['isInverseSide'] = true;
2033
                $mapping['isOwningSide'] = false;
@@ 2031-2034 (lines=4) @@
2028
                $mapping['isInverseSide'] = true;
2029
                $mapping['isOwningSide'] = false;
2030
            }
2031
            if (isset($mapping['repositoryMethod'])) {
2032
                $mapping['isInverseSide'] = true;
2033
                $mapping['isOwningSide'] = false;
2034
            }
2035
            if (!isset($mapping['orphanRemoval'])) {
2036
                $mapping['orphanRemoval'] = false;
2037
            }