Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 753-755 (lines=3) @@
750
                    throw new \InvalidArgumentException("Reference type {$storeAs} is invalid.");
751
            }
752
753
            foreach ($keys as $key => $value) {
754
                $this->query[$mapping['name']]['$elemMatch'][$key] = $reference[$key];
755
            }
756
        } else {
757
            @trigger_error('Calling ' . __METHOD__ . ' without a current field set will no longer be possible in ODM 2.0.', E_USER_DEPRECATED);
758
@@ 1177-1179 (lines=3) @@
1174
                    throw new \InvalidArgumentException("Reference type {$storeAs} is invalid.");
1175
            }
1176
1177
            foreach ($keys as $key => $value) {
1178
                $this->query[$mapping['name'] . '.' . $key] = $reference[$key];
1179
            }
1180
        } else {
1181
            @trigger_error('Calling ' . __METHOD__ . ' without a current field set will no longer be possible in ODM 2.0.', E_USER_DEPRECATED);
1182