Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 737-739 (lines=3) @@
734
                    throw new \InvalidArgumentException("Reference type {$storeAs} is invalid.");
735
            }
736
737
            foreach ($keys as $key => $value) {
738
                $this->query[$mapping['name']]['$elemMatch'][$key] = $reference[$key];
739
            }
740
        } else {
741
            @trigger_error('Calling ' . __METHOD__ . ' without a current field set will no longer be possible in ODM 2.0.', E_USER_DEPRECATED);
742
@@ 1162-1164 (lines=3) @@
1159
                    throw new \InvalidArgumentException("Reference type {$storeAs} is invalid.");
1160
            }
1161
1162
            foreach ($keys as $key => $value) {
1163
                $this->query[$mapping['name'] . '.' . $key] = $reference[$key];
1164
            }
1165
        } else {
1166
            @trigger_error('Calling ' . __METHOD__ . ' without a current field set will no longer be possible in ODM 2.0.', E_USER_DEPRECATED);
1167