Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 1020-1028 (lines=9) @@
1017
     * @return $this
1018
     * @throws \BadMethodCallException if the query is not a mapReduce command
1019
     */
1020
    public function mapReduceOptions(array $options)
1021
    {
1022
        if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) {
1023
            throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)');
1024
        }
1025
1026
        $this->query['mapReduce']['options'] = $options;
1027
        return $this;
1028
    }
1029
1030
    /**
1031
     * Updates the value of the field to a specified value if the specified value is greater than the current value of the field.
@@ 1190-1198 (lines=9) @@
1187
     * @return $this
1188
     * @throws \BadMethodCallException if the query is not a mapReduce command
1189
     */
1190
    public function out($out)
1191
    {
1192
        if ($this->query['type'] !== Query::TYPE_MAP_REDUCE) {
1193
            throw new \BadMethodCallException('This method requires a mapReduce command (call map() or mapReduce() first)');
1194
        }
1195
1196
        $this->query['mapReduce']['out'] = $out;
1197
        return $this;
1198
    }
1199
1200
    /**
1201
     * Remove the first element from the current array field.