Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1041-1049 (lines=9) @@
1038
     * @return $this
1039
     * @throws \BadMethodCallException if the query is not a mapReduce command
1040
     */
1041
    public function mapReduceOptions(array $options)
1042
    {
1043
        if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) {
1044
            throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)');
1045
        }
1046
1047
        $this->query['mapReduce']['options'] = $options;
1048
        return $this;
1049
    }
1050
1051
    /**
1052
     * Updates the value of the field to a specified value if the specified value is greater than the current value of the field.
@@ 1225-1233 (lines=9) @@
1222
     * @return $this
1223
     * @throws \BadMethodCallException if the query is not a mapReduce command
1224
     */
1225
    public function out($out)
1226
    {
1227
        if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) {
1228
            throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)');
1229
        }
1230
1231
        $this->query['mapReduce']['out'] = $out;
1232
        return $this;
1233
    }
1234
1235
    /**
1236
     * Remove the first element from the current array field.