Code Duplication    Length = 3-3 lines in 2 locations

lib/Doctrine/ODM/MongoDB/Query/Expr.php 2 locations

@@ 106-108 (lines=3) @@
103
                    throw new \InvalidArgumentException("Reference type {$storeAs} is invalid.");
104
            }
105
106
            foreach ($keys as $key => $value) {
107
                $this->query[$mapping['name'] . '.' . $key] = $reference[$key];
108
            }
109
        } else {
110
            @trigger_error('Calling ' . __METHOD__ . ' without a current field set will no longer be possible in ODM 2.0.', E_USER_DEPRECATED);
111
@@ 158-160 (lines=3) @@
155
                    throw new \InvalidArgumentException("Reference type {$storeAs} is invalid.");
156
            }
157
158
            foreach ($keys as $key => $value) {
159
                $this->query[$mapping['name']]['$elemMatch'][$key] = $reference[$key];
160
            }
161
        } else {
162
            @trigger_error('Calling ' . __METHOD__ . ' without a current field set will no longer be possible in ODM 2.0.', E_USER_DEPRECATED);
163