Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 1084-1086 (lines=3) @@
1081
            }
1082
1083
            // Objects without operators or with DBRef fields can be converted immediately
1084
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1085
                return [[$fieldName, $targetClass->getDatabaseIdentifierValue($value)]];
1086
            }
1087
1088
            return [[$fieldName, $this->prepareQueryExpression($value, $targetClass)]];
1089
        }
@@ 1104-1106 (lines=3) @@
1101
            }
1102
1103
            // Objects without operators or with DBRef fields can be converted immediately
1104
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1105
                return [[$fieldName, $class->getDatabaseIdentifierValue($value)]];
1106
            }
1107
1108
            return [[$fieldName, $this->prepareQueryExpression($value, $class)]];
1109
        }
@@ 1199-1201 (lines=3) @@
1196
            }
1197
1198
            // Objects without operators or with DBRef fields can be converted immediately
1199
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1200
                return [[$fieldName, $targetClass->getDatabaseIdentifierValue($value)]];
1201
            }
1202
1203
            return [[$fieldName, $this->prepareQueryExpression($value, $targetClass)]];
1204
        }