Code Duplication    Length = 8-8 lines in 2 locations

Query/GeocodeQuery.php 1 location

@@ 164-171 (lines=8) @@
161
     *
162
     * @return mixed
163
     */
164
    public function getData(string $name, $default = null)
165
    {
166
        if (!array_key_exists($name, $this->data)) {
167
            return $default;
168
        }
169
170
        return $this->data[$name];
171
    }
172
173
    /**
174
     * @return array

Query/ReverseQuery.php 1 location

@@ 142-149 (lines=8) @@
139
     *
140
     * @return mixed
141
     */
142
    public function getData(string $name, $default = null)
143
    {
144
        if (!array_key_exists($name, $this->data)) {
145
            return $default;
146
        }
147
148
        return $this->data[$name];
149
    }
150
151
    /**
152
     * @return array