Code Duplication    Length = 3-3 lines in 3 locations

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

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