Code Duplication    Length = 8-8 lines in 2 locations

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

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