Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 1011-1013 (lines=3) @@
1008
            }
1009
1010
            // Objects without operators or with DBRef fields can be converted immediately
1011
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1012
                return array($fieldName, $targetClass->getDatabaseIdentifierValue($value));
1013
            }
1014
1015
            return array($fieldName, $this->prepareQueryExpression($value, $targetClass));
1016
        }
@@ 1031-1033 (lines=3) @@
1028
            }
1029
1030
            // Objects without operators or with DBRef fields can be converted immediately
1031
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1032
                return array($fieldName, $class->getDatabaseIdentifierValue($value));
1033
            }
1034
1035
            return array($fieldName, $this->prepareQueryExpression($value, $class));
1036
        }
@@ 1126-1128 (lines=3) @@
1123
            }
1124
1125
            // Objects without operators or with DBRef fields can be converted immediately
1126
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1127
                return array($fieldName, $targetClass->getDatabaseIdentifierValue($value));
1128
            }
1129
1130
            return array($fieldName, $this->prepareQueryExpression($value, $targetClass));
1131
        }