Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 1050-1052 (lines=3) @@
1047
            }
1048
1049
            // Objects without operators or with DBRef fields can be converted immediately
1050
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1051
                return array($fieldName, $targetClass->getDatabaseIdentifierValue($value));
1052
            }
1053
1054
            return array($fieldName, $this->prepareQueryExpression($value, $targetClass));
1055
        }
@@ 1070-1072 (lines=3) @@
1067
            }
1068
1069
            // Objects without operators or with DBRef fields can be converted immediately
1070
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1071
                return array($fieldName, $class->getDatabaseIdentifierValue($value));
1072
            }
1073
1074
            return array($fieldName, $this->prepareQueryExpression($value, $class));
1075
        }
@@ 1165-1167 (lines=3) @@
1162
            }
1163
1164
            // Objects without operators or with DBRef fields can be converted immediately
1165
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1166
                return array($fieldName, $targetClass->getDatabaseIdentifierValue($value));
1167
            }
1168
1169
            return array($fieldName, $this->prepareQueryExpression($value, $targetClass));
1170
        }