Code Duplication    Length = 3-3 lines in 3 locations

lib/Doctrine/ODM/MongoDB/Persisters/DocumentPersister.php 3 locations

@@ 1061-1063 (lines=3) @@
1058
            }
1059
1060
            // Objects without operators or with DBRef fields can be converted immediately
1061
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1062
                return [[$fieldName, $targetClass->getDatabaseIdentifierValue($value)]];
1063
            }
1064
1065
            return [[$fieldName, $this->prepareQueryExpression($value, $targetClass)]];
1066
        }
@@ 1081-1083 (lines=3) @@
1078
            }
1079
1080
            // Objects without operators or with DBRef fields can be converted immediately
1081
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1082
                return [[$fieldName, $class->getDatabaseIdentifierValue($value)]];
1083
            }
1084
1085
            return [[$fieldName, $this->prepareQueryExpression($value, $class)]];
1086
        }
@@ 1176-1178 (lines=3) @@
1173
            }
1174
1175
            // Objects without operators or with DBRef fields can be converted immediately
1176
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1177
                return [[$fieldName, $targetClass->getDatabaseIdentifierValue($value)]];
1178
            }
1179
1180
            return [[$fieldName, $this->prepareQueryExpression($value, $targetClass)]];
1181
        }