Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 1073-1075 (lines=3) @@
1070
            }
1071
1072
            // Objects without operators or with DBRef fields can be converted immediately
1073
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1074
                return [[$fieldName, $targetClass->getDatabaseIdentifierValue($value)]];
1075
            }
1076
1077
            return [[$fieldName, $this->prepareQueryExpression($value, $targetClass)]];
1078
        }
@@ 1093-1095 (lines=3) @@
1090
            }
1091
1092
            // Objects without operators or with DBRef fields can be converted immediately
1093
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1094
                return [[$fieldName, $class->getDatabaseIdentifierValue($value)]];
1095
            }
1096
1097
            return [[$fieldName, $this->prepareQueryExpression($value, $class)]];
1098
        }
@@ 1188-1190 (lines=3) @@
1185
            }
1186
1187
            // Objects without operators or with DBRef fields can be converted immediately
1188
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1189
                return [[$fieldName, $targetClass->getDatabaseIdentifierValue($value)]];
1190
            }
1191
1192
            return [[$fieldName, $this->prepareQueryExpression($value, $targetClass)]];
1193
        }