Code Duplication    Length = 13-13 lines in 2 locations

app/Module/GoogleMapsModule.php 2 locations

@@ 408-420 (lines=13) @@
405
					<div class="row">
406
						<div class ="col-sm-6">
407
							<p class="form-control-static"><strong><?php echo I18N::translate('Prefixes') ?></strong></p>
408
							<?php for ($level = 1; $level < 10; $level++): ?>
409
							<?php
410
							if ($level == 1) {
411
								$label = I18N::translate('Country');
412
							} else {
413
								$label = I18N::translate('Level') . ' ' . $level;
414
							}
415
							?>
416
							<div class="input-group">
417
								<label class="input-group-addon" for="GM_PREFIX_<?php echo $level ?>"><?php echo $label ?></label>
418
								<input class="form-control" type="text" name="GM_PREFIX_<?php echo $level ?>" value="<?php echo $this->getSetting('GM_PREFIX_' . $level) ?>">
419
							</div>
420
							<?php endfor ?>
421
						</div>
422
						<div class="col-sm-6">
423
							<p class="form-control-static"><strong><?php echo I18N::translate('Suffixes') ?></strong></p>
@@ 424-436 (lines=13) @@
421
						</div>
422
						<div class="col-sm-6">
423
							<p class="form-control-static"><strong><?php echo I18N::translate('Suffixes') ?></strong></p>
424
							<?php for ($level = 1; $level < 10; $level++): ?>
425
							<?php
426
							if ($level == 1) {
427
								$label = I18N::translate('Country');
428
							} else {
429
								$label = I18N::translate('Level') . ' ' . $level;
430
							}
431
							?>
432
							<div class="input-group">
433
								<label class="input-group-addon" for="GM_POSTFIX_<?php echo $level ?>"><?php echo $label ?></label>
434
								<input class="form-control" type="text" name="GM_POSTFIX_<?php echo $level ?>" value="<?php echo $this->getSetting('GM_POSTFIX_' . $level) ?>">
435
							</div>
436
							<?php endfor ?>
437
						</div>
438
					</div>
439
					<p class="small text-muted"><?php echo I18N::translate('Some place names may be written with optional prefixes and suffixes. For example “Orange” versus “Orange County”. If the family tree contains the full place names, but the geographic database contains the short place names, then you should specify a list of the prefixes and suffixes to be disregarded. Multiple values should be separated with semicolons. For example “County;County of” or “Township;Twp;Twp.”.') ?></p>