Code Duplication    Length = 8-9 lines in 2 locations

code/blocks/google-maps/fields/GoogleMapField.php 2 locations

@@ 245-253 (lines=9) @@
242
     *
243
     * @return void
244
     */
245
    public function zoomChanged(\SS_HTTPRequest $request) {
246
        $data = $request->getVars();
247
248
        if (array_key_exists('zoom', $data)) {
249
            $zoomLevel = (int) $data['zoom'];
250
            $this->block->ZoomLevel = $zoomLevel;
251
            $this->block->write();
252
        }
253
    }
254
255
    /**
256
     * Action to update coordinates changes.
@@ 262-269 (lines=8) @@
259
     *
260
     * @return void
261
     */
262
    public function coordinatesChanged(\SS_HTTPRequest $request) {
263
        $data = $request->getVars();
264
265
        if (array_key_exists('coordinates', $data)) {
266
            $this->block->Coordinates = $data['coordinates'];
267
            $this->block->write();
268
        }
269
    }
270
}