Code Duplication    Length = 8-8 lines in 2 locations

Query/GeocodeQuery.php 1 location

@@ 177-184 (lines=8) @@
174
     *
175
     * @return mixed
176
     */
177
    public function getData(string $name, $default = null)
178
    {
179
        if (!array_key_exists($name, $this->data)) {
180
            return $default;
181
        }
182
183
        return $this->data[$name];
184
    }
185
186
    /**
187
     * @return array

Query/ReverseQuery.php 1 location

@@ 155-162 (lines=8) @@
152
     *
153
     * @return mixed
154
     */
155
    public function getData(string $name, $default = null)
156
    {
157
        if (!array_key_exists($name, $this->data)) {
158
            return $default;
159
        }
160
161
        return $this->data[$name];
162
    }
163
164
    /**
165
     * @return array