Code Duplication    Length = 8-8 lines in 2 locations

ProviderAggregator.php 2 locations

@@ 61-68 (lines=8) @@
58
    /**
59
     * {@inheritdoc}
60
     */
61
    public function geocodeQuery(GeocodeQuery $query): Collection
62
    {
63
        if (null === $query->getLimit()) {
64
            $query = $query->withLimit($this->limit);
65
        }
66
67
        return call_user_func($this->decider, $query, $this->providers, $this->provider)->geocodeQuery($query);
68
    }
69
70
    /**
71
     * {@inheritdoc}
@@ 73-80 (lines=8) @@
70
    /**
71
     * {@inheritdoc}
72
     */
73
    public function reverseQuery(ReverseQuery $query): Collection
74
    {
75
        if (null === $query->getLimit()) {
76
            $query = $query->withLimit($this->limit);
77
        }
78
79
        return call_user_func($this->decider, $query, $this->providers, $this->provider)->reverseQuery($query);
80
    }
81
82
    /**
83
     * {@inheritdoc}