Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1062-1070 (lines=9) @@
1059
     * @return $this
1060
     * @throws \BadMethodCallException if the query is not a mapReduce command
1061
     */
1062
    public function mapReduceOptions(array $options)
1063
    {
1064
        if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) {
1065
            throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)');
1066
        }
1067
1068
        $this->query['mapReduce']['options'] = $options;
1069
        return $this;
1070
    }
1071
1072
    /**
1073
     * Updates the value of the field to a specified value if the specified value is greater than the current value of the field.
@@ 1246-1254 (lines=9) @@
1243
     * @return $this
1244
     * @throws \BadMethodCallException if the query is not a mapReduce command
1245
     */
1246
    public function out($out)
1247
    {
1248
        if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) {
1249
            throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)');
1250
        }
1251
1252
        $this->query['mapReduce']['out'] = $out;
1253
        return $this;
1254
    }
1255
1256
    /**
1257
     * Remove the first element from the current array field.