Code Duplication    Length = 8-8 lines in 2 locations

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

@@ 464-471 (lines=8) @@
461
     * @param array|Geometry $geometry
462
     * @return $this
463
     */
464
    public function geoIntersects($geometry)
465
    {
466
        if ($geometry instanceof Geometry) {
467
            $geometry = $geometry->jsonSerialize();
468
        }
469
470
        return $this->operator('$geoIntersects', ['$geometry' => $geometry]);
471
    }
472
473
    /**
474
     * Add $geoWithin criteria with a GeoJSON geometry to the expression.
@@ 484-491 (lines=8) @@
481
     * @param array|Geometry $geometry
482
     * @return $this
483
     */
484
    public function geoWithin($geometry)
485
    {
486
        if ($geometry instanceof Geometry) {
487
            $geometry = $geometry->jsonSerialize();
488
        }
489
490
        return $this->operator('$geoWithin', ['$geometry' => $geometry]);
491
    }
492
493
    /**
494
     * Add $geoWithin criteria with a $box shape to the expression.