Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 993-995 (lines=3) @@
990
            }
991
992
            // Objects without operators or with DBRef fields can be converted immediately
993
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
994
                return array($fieldName, $targetClass->getDatabaseIdentifierValue($value));
995
            }
996
997
            return array($fieldName, $this->prepareQueryExpression($value, $targetClass));
998
        }
@@ 1013-1015 (lines=3) @@
1010
            }
1011
1012
            // Objects without operators or with DBRef fields can be converted immediately
1013
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1014
                return array($fieldName, $class->getDatabaseIdentifierValue($value));
1015
            }
1016
1017
            return array($fieldName, $this->prepareQueryExpression($value, $class));
1018
        }
@@ 1108-1110 (lines=3) @@
1105
            }
1106
1107
            // Objects without operators or with DBRef fields can be converted immediately
1108
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1109
                return array($fieldName, $targetClass->getDatabaseIdentifierValue($value));
1110
            }
1111
1112
            return array($fieldName, $this->prepareQueryExpression($value, $targetClass));
1113
        }