Code Duplication    Length = 8-8 lines in 2 locations

ProviderAggregator.php 2 locations

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