Code Duplication    Length = 3-3 lines in 3 locations

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

@@ 1001-1003 (lines=3) @@
998
            }
999
1000
            // Objects without operators or with DBRef fields can be converted immediately
1001
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1002
                return array($fieldName, $targetClass->getDatabaseIdentifierValue($value));
1003
            }
1004
1005
            return array($fieldName, $this->prepareQueryExpression($value, $targetClass));
1006
        }
@@ 1021-1023 (lines=3) @@
1018
            }
1019
1020
            // Objects without operators or with DBRef fields can be converted immediately
1021
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1022
                return array($fieldName, $class->getDatabaseIdentifierValue($value));
1023
            }
1024
1025
            return array($fieldName, $this->prepareQueryExpression($value, $class));
1026
        }
@@ 1116-1118 (lines=3) @@
1113
            }
1114
1115
            // Objects without operators or with DBRef fields can be converted immediately
1116
            if ( ! $this->hasQueryOperators($value) || $this->hasDBRefFields($value)) {
1117
                return array($fieldName, $targetClass->getDatabaseIdentifierValue($value));
1118
            }
1119
1120
            return array($fieldName, $this->prepareQueryExpression($value, $targetClass));
1121
        }