Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 273-279 (lines=7) @@
270
     * @param string $from Target collection for the $graphLookup operation to
271
     * search, recursively matching the connectFromField to the connectToField.
272
     */
273
    public function graphLookup(string $from) : Stage\GraphLookup
274
    {
275
        $stage = new Stage\GraphLookup($this, $from, $this->dm, $this->class);
276
        $this->addStage($stage);
277
278
        return $stage;
279
    }
280
281
    /**
282
     * Groups documents by some specified expression and outputs to the next
@@ 338-344 (lines=7) @@
335
     *
336
     * @see https://docs.mongodb.org/manual/reference/operator/aggregation/lookup/
337
     */
338
    public function lookup(string $from) : Stage\Lookup
339
    {
340
        $stage = new Stage\Lookup($this, $from, $this->dm, $this->class);
341
        $this->addStage($stage);
342
343
        return $stage;
344
    }
345
346
    /**
347
     * Filters the documents to pass only the documents that match the specified