Test Failed
Branch master (4a3c5b)
by Greg
12:31
created
app/Module/FamilyNavigatorModule.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,8 +150,8 @@
 block discarded – undo
150 150
 				}
151 151
 
152 152
 				foreach ($family->getChildren() as $child) {
153
-          $icon = $controller->record === $child ? '<i class="icon-selected"></i>' : '';
154
-          $menu = new Menu($icon . Functions::getCloseRelationshipName($controller->record, $child));
153
+					$icon = $controller->record === $child ? '<i class="icon-selected"></i>' : '';
154
+					$menu = new Menu($icon . Functions::getCloseRelationshipName($controller->record, $child));
155 155
 					$menu->addSubmenu(new Menu($this->getFamily($child)));
156 156
 					?>
157 157
 					<tr class="text-center wt-child wt-gender-<?= $child->getSex() ?>">
Please login to merge, or discard this patch.
app/Module/RelativesTabModule.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@
 block discarded – undo
177 177
 					$row_class .= ' old';
178 178
 				}
179 179
 				$icon = $controller->record === $person ? '<i class="icon-selected"></i>' : '';
180
-        ?>
180
+				?>
181 181
 				<tr class="<?= $row_class ?>">
182 182
 					<th scope="row">
183 183
 					<?= $icon ?>
Please login to merge, or discard this patch.
app/Datatables.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
 
65 65
 		return [
66 66
 			'data-language'     => json_encode($language),
67
-		  'data-length-menu' => json_encode([array_keys($length_menu), array_values($length_menu)])
67
+			'data-length-menu' => json_encode([array_keys($length_menu), array_values($length_menu)])
68 68
 		];
69 69
 	}
70 70
 
Please login to merge, or discard this patch.
app/Theme/AbstractTheme.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -101,9 +101,9 @@
 block discarded – undo
101 101
 		'info'    => 'fa fa-info-circle',
102 102
 		'warning' => 'fa fa-exclamation-circle',
103 103
 
104
-	  // Icons for file types
105
-	  'mime-application-pdf' => '',
106
-	  'mime-text-html'       => '',
104
+		// Icons for file types
105
+		'mime-application-pdf' => '',
106
+		'mime-text-html'       => '',
107 107
 
108 108
 		// Other icons
109 109
 		'mail'   => 'fa fa-envelope-o',
Please login to merge, or discard this patch.
Switch Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -329,12 +329,12 @@  discard block
 block discarded – undo
329 329
 		$method = $user->getPreference('contactmethod');
330 330
 
331 331
 		switch ($method) {
332
-		case 'none':
333
-			return '';
334
-		case 'mailto':
335
-			return '<a href="mailto:' . Html::escape($user->getEmail()) . '">' . $user->getRealNameHtml() . '</a>';
336
-		default:
337
-			return '<a href="message.php?to=' . rawurlencode($user->getUserName()) . '&amp;ged=' . $this->tree->getNameUrl() . '&amp;url=' . Html::escape(Functions::getQueryUrl()) . '">' . $user->getRealNameHtml() . '</a>';
332
+			case 'none':
333
+				return '';
334
+			case 'mailto':
335
+				return '<a href="mailto:' . Html::escape($user->getEmail()) . '">' . $user->getRealNameHtml() . '</a>';
336
+			default:
337
+				return '<a href="message.php?to=' . rawurlencode($user->getUserName()) . '&amp;ged=' . $this->tree->getNameUrl() . '&amp;url=' . Html::escape(Functions::getQueryUrl()) . '">' . $user->getRealNameHtml() . '</a>';
338 338
 		}
339 339
 	}
340 340
 
@@ -1413,20 +1413,20 @@  discard block
 block discarded – undo
1413 1413
 		$records  = [];
1414 1414
 		foreach ($favorites as $favorite) {
1415 1415
 			switch ($favorite['type']) {
1416
-			case 'URL':
1417
-				$submenus[] = new Menu($favorite['title'], $favorite['url']);
1418
-				break;
1419
-			case 'INDI':
1420
-			case 'FAM':
1421
-			case 'SOUR':
1422
-			case 'OBJE':
1423
-			case 'NOTE':
1424
-				$record = GedcomRecord::getInstance($favorite['gid'], $this->tree);
1425
-				if ($record && $record->canShowName()) {
1426
-					$submenus[] = new Menu($record->getFullName(), $record->getHtmlUrl());
1427
-					$records[]  = $record;
1428
-				}
1429
-				break;
1416
+				case 'URL':
1417
+					$submenus[] = new Menu($favorite['title'], $favorite['url']);
1418
+					break;
1419
+				case 'INDI':
1420
+				case 'FAM':
1421
+				case 'SOUR':
1422
+				case 'OBJE':
1423
+				case 'NOTE':
1424
+					$record = GedcomRecord::getInstance($favorite['gid'], $this->tree);
1425
+					if ($record && $record->canShowName()) {
1426
+						$submenus[] = new Menu($record->getFullName(), $record->getHtmlUrl());
1427
+						$records[]  = $record;
1428
+					}
1429
+					break;
1430 1430
 			}
1431 1431
 		}
1432 1432
 
Please login to merge, or discard this patch.
app/MediaFile.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,17 +31,17 @@
 block discarded – undo
31 31
 	private $multimedia_format = '';
32 32
 
33 33
 	/** @var string The type of document; newspaper, microfiche, etc. */
34
-  private $source_media_type = '';
34
+	private $source_media_type = '';
35 35
 	/** @var string The filename */
36 36
 
37 37
 	/** @var string The name of the document */
38
-  private $descriptive_title = '';
38
+	private $descriptive_title = '';
39 39
 
40
-  /** @var Media $media The media object to which this file belongs */
41
-  private $media;
40
+	/** @var Media $media The media object to which this file belongs */
41
+	private $media;
42 42
 
43
-  /** @var string */
44
-  private $fact_id;
43
+	/** @var string */
44
+	private $fact_id;
45 45
 
46 46
 	/**
47 47
 	 * Create a MediaFile from raw GEDCOM data.
Please login to merge, or discard this patch.
Switch Indentation   +50 added lines, -50 removed lines patch added patch discarded remove patch
@@ -387,56 +387,56 @@
 block discarded – undo
387 387
 	public function mimeType() {
388 388
 		// Themes contain icon definitions for some/all of these mime-types
389 389
 		switch ($this->extension()) {
390
-		case 'bmp':
391
-			return 'image/bmp';
392
-		case 'doc':
393
-			return 'application/msword';
394
-		case 'docx':
395
-			return 'application/msword';
396
-		case 'ged':
397
-			return 'text/x-gedcom';
398
-		case 'gif':
399
-			return 'image/gif';
400
-		case 'htm':
401
-			return 'text/html';
402
-		case 'html':
403
-			return 'text/html';
404
-		case 'jpeg':
405
-			return 'image/jpeg';
406
-		case 'jpg':
407
-			return 'image/jpeg';
408
-		case 'mov':
409
-			return 'video/quicktime';
410
-		case 'mp3':
411
-			return 'audio/mpeg';
412
-		case 'mp4':
413
-			return 'video/mp4';
414
-		case 'ogv':
415
-			return 'video/ogg';
416
-		case 'pdf':
417
-			return 'application/pdf';
418
-		case 'png':
419
-			return 'image/png';
420
-		case 'rar':
421
-			return 'application/x-rar-compressed';
422
-		case 'swf':
423
-			return 'application/x-shockwave-flash';
424
-		case 'svg':
425
-			return 'image/svg';
426
-		case 'tif':
427
-			return 'image/tiff';
428
-		case 'tiff':
429
-			return 'image/tiff';
430
-		case 'xls':
431
-			return 'application/vnd-ms-excel';
432
-		case 'xlsx':
433
-			return 'application/vnd-ms-excel';
434
-		case 'wmv':
435
-			return 'video/x-ms-wmv';
436
-		case 'zip':
437
-			return 'application/zip';
438
-		default:
439
-			return 'application/octet-stream';
390
+			case 'bmp':
391
+				return 'image/bmp';
392
+			case 'doc':
393
+				return 'application/msword';
394
+			case 'docx':
395
+				return 'application/msword';
396
+			case 'ged':
397
+				return 'text/x-gedcom';
398
+			case 'gif':
399
+				return 'image/gif';
400
+			case 'htm':
401
+				return 'text/html';
402
+			case 'html':
403
+				return 'text/html';
404
+			case 'jpeg':
405
+				return 'image/jpeg';
406
+			case 'jpg':
407
+				return 'image/jpeg';
408
+			case 'mov':
409
+				return 'video/quicktime';
410
+			case 'mp3':
411
+				return 'audio/mpeg';
412
+			case 'mp4':
413
+				return 'video/mp4';
414
+			case 'ogv':
415
+				return 'video/ogg';
416
+			case 'pdf':
417
+				return 'application/pdf';
418
+			case 'png':
419
+				return 'image/png';
420
+			case 'rar':
421
+				return 'application/x-rar-compressed';
422
+			case 'swf':
423
+				return 'application/x-shockwave-flash';
424
+			case 'svg':
425
+				return 'image/svg';
426
+			case 'tif':
427
+				return 'image/tiff';
428
+			case 'tiff':
429
+				return 'image/tiff';
430
+			case 'xls':
431
+				return 'application/vnd-ms-excel';
432
+			case 'xlsx':
433
+				return 'application/vnd-ms-excel';
434
+			case 'wmv':
435
+				return 'video/x-ms-wmv';
436
+			case 'zip':
437
+				return 'application/zip';
438
+			default:
439
+				return 'application/octet-stream';
440 440
 		}
441 441
 	}
442 442
 }
Please login to merge, or discard this patch.
edit_changes.php 1 patch
Switch Indentation   +85 added lines, -85 removed lines patch added patch discarded remove patch
@@ -35,72 +35,72 @@  discard block
 block discarded – undo
35 35
 $url       = Filter::get('url', null, 'index.php');
36 36
 
37 37
 switch ($action) {
38
-case 'reject':
39
-	$gedcom_id = Database::prepare("SELECT gedcom_id FROM `##change` WHERE change_id=?")->execute([$change_id])->fetchOne();
40
-	$xref      = Database::prepare("SELECT xref      FROM `##change` WHERE change_id=?")->execute([$change_id])->fetchOne();
41
-	// Reject a change, and subsequent changes to the same record
42
-	Database::prepare(
43
-		"UPDATE `##change`" .
44
-		" SET   status     = 'rejected'" .
45
-		" WHERE status     = 'pending'" .
46
-		" AND   gedcom_id  = ?" .
47
-		" AND   xref       = ?" .
48
-		" AND   change_id >= ?"
49
-	)->execute([$gedcom_id, $xref, $change_id]);
50
-	break;
51
-case 'accept':
52
-	$gedcom_id = Database::prepare("SELECT gedcom_id FROM `##change` WHERE change_id=?")->execute([$change_id])->fetchOne();
53
-	$xref      = Database::prepare("SELECT xref      FROM `##change` WHERE change_id=?")->execute([$change_id])->fetchOne();
54
-	// Accept a change, and all previous changes to the same record
55
-	$all_changes = Database::prepare(
56
-		"SELECT change_id, gedcom_id, gedcom_name, xref, old_gedcom, new_gedcom" .
57
-		" FROM  `##change` c" .
58
-		" JOIN  `##gedcom` g USING (gedcom_id)" .
59
-		" WHERE c.status   = 'pending'" .
60
-		" AND   gedcom_id  = ?" .
61
-		" AND   xref       = ?" .
62
-		" AND   change_id <= ?" .
63
-		" ORDER BY change_id"
64
-	)->execute([$gedcom_id, $xref, $change_id])->fetchAll();
65
-	foreach ($all_changes as $change) {
66
-		if (empty($change->new_gedcom)) {
67
-			// delete
68
-			FunctionsImport::updateRecord($change->old_gedcom, $gedcom_id, true);
69
-		} else {
70
-			// add/update
71
-			FunctionsImport::updateRecord($change->new_gedcom, $gedcom_id, false);
38
+	case 'reject':
39
+		$gedcom_id = Database::prepare("SELECT gedcom_id FROM `##change` WHERE change_id=?")->execute([$change_id])->fetchOne();
40
+		$xref      = Database::prepare("SELECT xref      FROM `##change` WHERE change_id=?")->execute([$change_id])->fetchOne();
41
+		// Reject a change, and subsequent changes to the same record
42
+		Database::prepare(
43
+			"UPDATE `##change`" .
44
+			" SET   status     = 'rejected'" .
45
+			" WHERE status     = 'pending'" .
46
+			" AND   gedcom_id  = ?" .
47
+			" AND   xref       = ?" .
48
+			" AND   change_id >= ?"
49
+		)->execute([$gedcom_id, $xref, $change_id]);
50
+		break;
51
+	case 'accept':
52
+		$gedcom_id = Database::prepare("SELECT gedcom_id FROM `##change` WHERE change_id=?")->execute([$change_id])->fetchOne();
53
+		$xref      = Database::prepare("SELECT xref      FROM `##change` WHERE change_id=?")->execute([$change_id])->fetchOne();
54
+		// Accept a change, and all previous changes to the same record
55
+		$all_changes = Database::prepare(
56
+			"SELECT change_id, gedcom_id, gedcom_name, xref, old_gedcom, new_gedcom" .
57
+			" FROM  `##change` c" .
58
+			" JOIN  `##gedcom` g USING (gedcom_id)" .
59
+			" WHERE c.status   = 'pending'" .
60
+			" AND   gedcom_id  = ?" .
61
+			" AND   xref       = ?" .
62
+			" AND   change_id <= ?" .
63
+			" ORDER BY change_id"
64
+		)->execute([$gedcom_id, $xref, $change_id])->fetchAll();
65
+		foreach ($all_changes as $change) {
66
+			if (empty($change->new_gedcom)) {
67
+				// delete
68
+				FunctionsImport::updateRecord($change->old_gedcom, $gedcom_id, true);
69
+			} else {
70
+				// add/update
71
+				FunctionsImport::updateRecord($change->new_gedcom, $gedcom_id, false);
72
+			}
73
+			Database::prepare("UPDATE `##change` SET status='accepted' WHERE change_id=?")->execute([$change->change_id]);
74
+			Log::addEditLog("Accepted change {$change->change_id} for {$change->xref} / {$change->gedcom_name} into database");
72 75
 		}
73
-		Database::prepare("UPDATE `##change` SET status='accepted' WHERE change_id=?")->execute([$change->change_id]);
74
-		Log::addEditLog("Accepted change {$change->change_id} for {$change->xref} / {$change->gedcom_name} into database");
75
-	}
76
-	break;
77
-case 'rejectall':
78
-	Database::prepare(
79
-		"UPDATE `##change`" .
80
-		" SET status='rejected'" .
81
-		" WHERE status='pending' AND gedcom_id=?"
82
-	)->execute([$WT_TREE->getTreeId()]);
83
-	break;
84
-case 'acceptall':
85
-	$all_changes = Database::prepare(
86
-		"SELECT change_id, gedcom_id, gedcom_name, xref, old_gedcom, new_gedcom" .
87
-		" FROM `##change` c" .
88
-		" JOIN `##gedcom` g USING (gedcom_id)" .
89
-		" WHERE c.status='pending' AND gedcom_id=?" .
90
-		" ORDER BY change_id"
91
-	)->execute([$WT_TREE->getTreeId()])->fetchAll();
92
-	foreach ($all_changes as $change) {
93
-		if (empty($change->new_gedcom)) {
94
-			// delete
95
-			FunctionsImport::updateRecord($change->old_gedcom, $change->gedcom_id, true);
96
-		} else {
97
-			// add/update
98
-			FunctionsImport::updateRecord($change->new_gedcom, $change->gedcom_id, false);
76
+		break;
77
+	case 'rejectall':
78
+		Database::prepare(
79
+			"UPDATE `##change`" .
80
+			" SET status='rejected'" .
81
+			" WHERE status='pending' AND gedcom_id=?"
82
+		)->execute([$WT_TREE->getTreeId()]);
83
+		break;
84
+	case 'acceptall':
85
+		$all_changes = Database::prepare(
86
+			"SELECT change_id, gedcom_id, gedcom_name, xref, old_gedcom, new_gedcom" .
87
+			" FROM `##change` c" .
88
+			" JOIN `##gedcom` g USING (gedcom_id)" .
89
+			" WHERE c.status='pending' AND gedcom_id=?" .
90
+			" ORDER BY change_id"
91
+		)->execute([$WT_TREE->getTreeId()])->fetchAll();
92
+		foreach ($all_changes as $change) {
93
+			if (empty($change->new_gedcom)) {
94
+				// delete
95
+				FunctionsImport::updateRecord($change->old_gedcom, $change->gedcom_id, true);
96
+			} else {
97
+				// add/update
98
+				FunctionsImport::updateRecord($change->new_gedcom, $change->gedcom_id, false);
99
+			}
100
+			Database::prepare("UPDATE `##change` SET status='accepted' WHERE change_id=?")->execute([$change->change_id]);
101
+			Log::addEditLog("Accepted change {$change->change_id} for {$change->xref} / {$change->gedcom_name} into database");
99 102
 		}
100
-		Database::prepare("UPDATE `##change` SET status='accepted' WHERE change_id=?")->execute([$change->change_id]);
101
-		Log::addEditLog("Accepted change {$change->change_id} for {$change->xref} / {$change->gedcom_name} into database");
102
-	}
103
-	break;
103
+		break;
104 104
 }
105 105
 
106 106
 $rows = Database::prepare(
@@ -120,27 +120,27 @@  discard block
 block discarded – undo
120 120
 	preg_match('/^0 (?:@' . WT_REGEX_XREF . '@ )?(' . WT_REGEX_TAG . ')/', $row->old_gedcom . $row->new_gedcom, $match);
121 121
 
122 122
 	switch ($match[1]) {
123
-	case 'INDI':
124
-		$row->record = new Individual($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
125
-		break;
126
-	case 'FAM':
127
-		$row->record = new Family($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
128
-		break;
129
-	case 'SOUR':
130
-		$row->record = new Source($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
131
-		break;
132
-	case 'REPO':
133
-		$row->record = new Repository($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
134
-		break;
135
-	case 'OBJE':
136
-		$row->record = new Media($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
137
-		break;
138
-	case 'NOTE':
139
-		$row->record = new Note($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
140
-		break;
141
-	default:
142
-		$row->record = new GedcomRecord($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
143
-		break;
123
+		case 'INDI':
124
+			$row->record = new Individual($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
125
+			break;
126
+		case 'FAM':
127
+			$row->record = new Family($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
128
+			break;
129
+		case 'SOUR':
130
+			$row->record = new Source($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
131
+			break;
132
+		case 'REPO':
133
+			$row->record = new Repository($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
134
+			break;
135
+		case 'OBJE':
136
+			$row->record = new Media($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
137
+			break;
138
+		case 'NOTE':
139
+			$row->record = new Note($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
140
+			break;
141
+		default:
142
+			$row->record = new GedcomRecord($row->xref, $row->old_gedcom, $row->new_gedcom, $tree);
143
+			break;
144 144
 	}
145 145
 
146 146
 	$row->accept_url = Html::url('edit_changes.php', [
Please login to merge, or discard this patch.
expand_view.php 1 patch
Switch Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -38,38 +38,38 @@
 block discarded – undo
38 38
 
39 39
 foreach ($facts as $fact) {
40 40
 	switch ($fact->getTag()) {
41
-	case 'ADDR':
42
-	case 'ALIA':
43
-	case 'ASSO':
44
-	case 'CHAN':
45
-	case 'CHIL':
46
-	case 'EMAIL':
47
-	case 'FAMC':
48
-	case 'FAMS':
49
-	case 'HUSB':
50
-	case 'NAME':
51
-	case 'NOTE':
52
-	case 'OBJE':
53
-	case 'PHON':
54
-	case 'RESI':
55
-	case 'RESN':
56
-	case 'SEX':
57
-	case 'SOUR':
58
-	case 'SSN':
59
-	case 'SUBM':
60
-	case 'TITL':
61
-	case 'URL':
62
-	case 'WIFE':
63
-	case 'WWW':
64
-	case '_EMAIL':
65
-	case '_TODO':
66
-	case '_UID':
67
-	case '_WT_OBJE_SORT':
68
-		// Do not show these
69
-		break;
70
-	default:
71
-		// Simple version of FunctionsPrintFacts::print_fact()
72
-		echo $fact->summary();
73
-		break;
41
+		case 'ADDR':
42
+		case 'ALIA':
43
+		case 'ASSO':
44
+		case 'CHAN':
45
+		case 'CHIL':
46
+		case 'EMAIL':
47
+		case 'FAMC':
48
+		case 'FAMS':
49
+		case 'HUSB':
50
+		case 'NAME':
51
+		case 'NOTE':
52
+		case 'OBJE':
53
+		case 'PHON':
54
+		case 'RESI':
55
+		case 'RESN':
56
+		case 'SEX':
57
+		case 'SOUR':
58
+		case 'SSN':
59
+		case 'SUBM':
60
+		case 'TITL':
61
+		case 'URL':
62
+		case 'WIFE':
63
+		case 'WWW':
64
+		case '_EMAIL':
65
+		case '_TODO':
66
+		case '_UID':
67
+		case '_WT_OBJE_SORT':
68
+			// Do not show these
69
+			break;
70
+		default:
71
+			// Simple version of FunctionsPrintFacts::print_fact()
72
+			echo $fact->summary();
73
+			break;
74 74
 	}
75 75
 }
Please login to merge, or discard this patch.
famlist.php 1 patch
Switch Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -37,12 +37,12 @@  discard block
 block discarded – undo
37 37
 
38 38
 $show_marnm = Filter::get('show_marnm', 'no|yes');
39 39
 switch ($show_marnm) {
40
-case 'no':
41
-case 'yes':
42
-	Auth::user()->setPreference('famlist.php_show_marnm', $show_marnm);
43
-	break;
44
-default:
45
-	$show_marnm = Auth::user()->getPreference('famlist.php_show_marnm');
40
+	case 'no':
41
+	case 'yes':
42
+		Auth::user()->setPreference('famlist.php_show_marnm', $show_marnm);
43
+		break;
44
+	default:
45
+		$show_marnm = Auth::user()->getPreference('famlist.php_show_marnm');
46 46
 }
47 47
 
48 48
 // Make sure selections are consistent.
@@ -79,16 +79,16 @@  discard block
 block discarded – undo
79 79
 	}
80 80
 	$url = '?surname=' . rawurlencode($surname) . '&amp;ged=' . $controller->tree()->getNameUrl();
81 81
 	switch ($falpha) {
82
-	case '':
83
-		break;
84
-	case '@':
85
-		$legend .= ', ' . I18N::translateContext('Unknown given name', '…');
86
-		$url .= '&amp;falpha=' . rawurlencode($falpha) . '&amp;ged=' . $controller->tree()->getNameUrl();
87
-		break;
88
-	default:
89
-		$legend .= ', ' . Html::escape($falpha) . '…';
90
-		$url .= '&amp;falpha=' . rawurlencode($falpha) . '&amp;ged=' . $controller->tree()->getNameUrl();
91
-		break;
82
+		case '':
83
+			break;
84
+		case '@':
85
+			$legend .= ', ' . I18N::translateContext('Unknown given name', '…');
86
+			$url .= '&amp;falpha=' . rawurlencode($falpha) . '&amp;ged=' . $controller->tree()->getNameUrl();
87
+			break;
88
+		default:
89
+			$legend .= ', ' . Html::escape($falpha) . '…';
90
+			$url .= '&amp;falpha=' . rawurlencode($falpha) . '&amp;ged=' . $controller->tree()->getNameUrl();
91
+			break;
92 92
 	}
93 93
 	$show = 'indi'; // SURN list makes no sense here
94 94
 } elseif ($alpha === '@') {
@@ -173,16 +173,16 @@  discard block
 block discarded – undo
173 173
 	if ($show === 'surn') {
174 174
 		// Show the surname list
175 175
 		switch ($controller->tree()->getPreference('SURNAME_LIST_STYLE')) {
176
-		case 'style1':
177
-			echo FunctionsPrintLists::surnameList($surns, 3, true, 'famlist.php', $controller->tree());
178
-			break;
179
-		case 'style3':
180
-			echo FunctionsPrintLists::surnameTagCloud($surns, 'famlist.php', true, $controller->tree());
181
-			break;
182
-		case 'style2':
183
-		default:
184
-			echo FunctionsPrintLists::surnameTable($surns, 'famlist.php', $controller->tree());
185
-			break;
176
+			case 'style1':
177
+				echo FunctionsPrintLists::surnameList($surns, 3, true, 'famlist.php', $controller->tree());
178
+				break;
179
+			case 'style3':
180
+				echo FunctionsPrintLists::surnameTagCloud($surns, 'famlist.php', true, $controller->tree());
181
+				break;
182
+			case 'style2':
183
+			default:
184
+				echo FunctionsPrintLists::surnameTable($surns, 'famlist.php', $controller->tree());
185
+				break;
186 186
 		}
187 187
 	} else {
188 188
 		// Show the list
Please login to merge, or discard this patch.
setup.php 1 patch
Switch Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -53,15 +53,15 @@
 block discarded – undo
53 53
 $route   = $request->get('route');
54 54
 
55 55
 switch ($method . ':' . $route) {
56
-default:
57
-	$url      = Html::url('setup.php', ['route' => 'setup']);
58
-	$response = new RedirectResponse($url);
59
-	break;
56
+	default:
57
+		$url      = Html::url('setup.php', ['route' => 'setup']);
58
+		$response = new RedirectResponse($url);
59
+		break;
60 60
 
61
-case 'GET:setup':
62
-case 'POST:setup':
63
-	$response = (new SetupController)->setup($request);
64
-	break;
61
+	case 'GET:setup':
62
+	case 'POST:setup':
63
+		$response = (new SetupController)->setup($request);
64
+		break;
65 65
 }
66 66
 
67 67
 $response->prepare($request)->send();
Please login to merge, or discard this patch.