Completed
Push — 1.7 ( ce7091...0d97cf )
by Greg
14:14 queued 07:41
created
app/Module/DescendancyModule.php 1 patch
Switch Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -50,19 +50,19 @@
 block discarded – undo
50 50
 		header('Content-Type: text/html; charset=UTF-8');
51 51
 
52 52
 		switch ($mod_action) {
53
-		case 'search':
54
-			$search = Filter::get('search');
55
-			echo $this->search($search, $WT_TREE);
56
-			break;
57
-		case 'descendants':
58
-			$individual = Individual::getInstance(Filter::get('xref', WT_REGEX_XREF), $WT_TREE);
59
-			if ($individual) {
60
-				echo $this->loadSpouses($individual, 1);
61
-			}
62
-			break;
63
-		default:
64
-			http_response_code(404);
65
-			break;
53
+		    case 'search':
54
+			    $search = Filter::get('search');
55
+			    echo $this->search($search, $WT_TREE);
56
+			    break;
57
+		    case 'descendants':
58
+			    $individual = Individual::getInstance(Filter::get('xref', WT_REGEX_XREF), $WT_TREE);
59
+			    if ($individual) {
60
+				    echo $this->loadSpouses($individual, 1);
61
+			    }
62
+			    break;
63
+		    default:
64
+			    http_response_code(404);
65
+			    break;
66 66
 		}
67 67
 	}
68 68
 
Please login to merge, or discard this patch.
app/Module/IndividualFactsTabModule.php 1 patch
Switch Indentation   +65 added lines, -65 removed lines patch added patch discarded remove patch
@@ -60,19 +60,19 @@  discard block
 block discarded – undo
60 60
 		// The individual’s own facts
61 61
 		foreach ($controller->record->getFacts() as $fact) {
62 62
 			switch ($fact->getTag()) {
63
-			case 'SEX':
64
-			case 'NAME':
65
-			case 'SOUR':
66
-			case 'OBJE':
67
-			case 'NOTE':
68
-			case 'FAMC':
69
-			case 'FAMS':
70
-				break;
71
-			default:
72
-				if (!array_key_exists('extra_info', Module::getActiveSidebars($controller->record->getTree())) || !ExtraInformationModule::showFact($fact)) {
73
-					$indifacts[] = $fact;
74
-				}
75
-				break;
63
+			    case 'SEX':
64
+			    case 'NAME':
65
+			    case 'SOUR':
66
+			    case 'OBJE':
67
+			    case 'NOTE':
68
+			    case 'FAMC':
69
+			    case 'FAMS':
70
+				    break;
71
+			    default:
72
+				    if (!array_key_exists('extra_info', Module::getActiveSidebars($controller->record->getTree())) || !ExtraInformationModule::showFact($fact)) {
73
+					    $indifacts[] = $fact;
74
+				    }
75
+				    break;
76 76
 			}
77 77
 		}
78 78
 
@@ -80,19 +80,19 @@  discard block
 block discarded – undo
80 80
 		foreach ($controller->record->getSpouseFamilies() as $family) {
81 81
 			foreach ($family->getFacts() as $fact) {
82 82
 				switch ($fact->getTag()) {
83
-				case 'SOUR':
84
-				case 'NOTE':
85
-				case 'OBJE':
86
-				case 'CHAN':
87
-				case '_UID':
88
-				case 'RIN':
89
-				case 'HUSB':
90
-				case 'WIFE':
91
-				case 'CHIL':
92
-					break;
93
-				default:
94
-					$indifacts[] = $fact;
95
-					break;
83
+				    case 'SOUR':
84
+				    case 'NOTE':
85
+				    case 'OBJE':
86
+				    case 'CHAN':
87
+				    case '_UID':
88
+				    case 'RIN':
89
+				    case 'HUSB':
90
+				    case 'WIFE':
91
+				    case 'CHIL':
92
+					    break;
93
+				    default:
94
+					    $indifacts[] = $fact;
95
+					    break;
96 96
 				}
97 97
 			}
98 98
 			$spouse = $family->getSpouse($controller->record);
@@ -239,27 +239,27 @@  discard block
 block discarded – undo
239 239
 
240 240
 		// Deal with recursion.
241 241
 		switch ($option) {
242
-		case '_CHIL':
243
-			// Add grandchildren
244
-			foreach ($family->getChildren() as $child) {
245
-				foreach ($child->getSpouseFamilies() as $cfamily) {
246
-					switch ($child->getSex()) {
247
-					case 'M':
248
-						foreach (self::childFacts($person, $cfamily, '_GCHI', 'son') as $fact) {
249
-							$facts[] = $fact;
250
-						}
251
-						break;
252
-					case 'F':
253
-						foreach (self::childFacts($person, $cfamily, '_GCHI', 'dau') as $fact) {
254
-							$facts[] = $fact;
255
-						}
256
-						break;
257
-					default:
258
-						foreach (self::childFacts($person, $cfamily, '_GCHI', 'chi') as $fact) {
259
-							$facts[] = $fact;
260
-						}
261
-						break;
262
-					}
242
+		    case '_CHIL':
243
+			    // Add grandchildren
244
+			    foreach ($family->getChildren() as $child) {
245
+				    foreach ($child->getSpouseFamilies() as $cfamily) {
246
+					    switch ($child->getSex()) {
247
+					        case 'M':
248
+						        foreach (self::childFacts($person, $cfamily, '_GCHI', 'son') as $fact) {
249
+							        $facts[] = $fact;
250
+						        }
251
+						        break;
252
+					        case 'F':
253
+						        foreach (self::childFacts($person, $cfamily, '_GCHI', 'dau') as $fact) {
254
+							        $facts[] = $fact;
255
+						        }
256
+						        break;
257
+					        default:
258
+						        foreach (self::childFacts($person, $cfamily, '_GCHI', 'chi') as $fact) {
259
+							        $facts[] = $fact;
260
+						        }
261
+						        break;
262
+					    }
263 263
 				}
264 264
 			}
265 265
 			break;
@@ -424,24 +424,24 @@  discard block
 block discarded – undo
424 424
 					foreach ($parent->getFacts(WT_EVENTS_DEAT) as $fact) {
425 425
 						if ($fact->getDate()->isOK() && Date::compare($birt_date, $fact->getDate()) <= 0 && Date::compare($fact->getDate(), $deat_date) <= 0) {
426 426
 							switch ($sosa) {
427
-							case 1:
428
-								// Convert the event to a close relatives event.
429
-								$rela_fact = clone($fact);
430
-								$rela_fact->setTag('_' . $fact->getTag() . '_PARE');
431
-								$facts[] = $rela_fact;
432
-								break;
433
-							case 2:
434
-								// Convert the event to a close relatives event
435
-								$rela_fact = clone($fact);
436
-								$rela_fact->setTag('_' . $fact->getTag() . '_GPA1');
437
-								$facts[] = $rela_fact;
438
-								break;
439
-							case 3:
440
-								// Convert the event to a close relatives event
441
-								$rela_fact = clone($fact);
442
-								$rela_fact->setTag('_' . $fact->getTag() . '_GPA2');
443
-								$facts[] = $rela_fact;
444
-								break;
427
+							    case 1:
428
+								    // Convert the event to a close relatives event.
429
+								    $rela_fact = clone($fact);
430
+								    $rela_fact->setTag('_' . $fact->getTag() . '_PARE');
431
+								    $facts[] = $rela_fact;
432
+								    break;
433
+							    case 2:
434
+								    // Convert the event to a close relatives event
435
+								    $rela_fact = clone($fact);
436
+								    $rela_fact->setTag('_' . $fact->getTag() . '_GPA1');
437
+								    $facts[] = $rela_fact;
438
+								    break;
439
+							    case 3:
440
+								    // Convert the event to a close relatives event
441
+								    $rela_fact = clone($fact);
442
+								    $rela_fact->setTag('_' . $fact->getTag() . '_GPA2');
443
+								    $facts[] = $rela_fact;
444
+								    break;
445 445
 							}
446 446
 						}
447 447
 					}
Please login to merge, or discard this patch.
app/Module/ChartsBlockModule.php 1 patch
Switch Indentation   +51 added lines, -51 removed lines patch added patch discarded remove patch
@@ -82,57 +82,57 @@
 block discarded – undo
82 82
 		if ($person) {
83 83
 			$content = '';
84 84
 			switch ($type) {
85
-			case 'pedigree':
86
-				$title .= I18N::translate('Pedigree of %s', $person->getFullName());
87
-				$chartController = new HourglassController($person->getXref(), $details, false);
88
-				$controller->addInlineJavascript($chartController->setupJavascript());
89
-				$content .= '<table cellspacing="0" cellpadding="0" border="0"><tr>';
90
-				$content .= '<td>';
91
-				ob_start();
92
-				FunctionsPrint::printPedigreePerson($person, $details);
93
-				$content .= ob_get_clean();
94
-				$content .= '</td>';
95
-				$content .= '<td>';
96
-				ob_start();
97
-				$chartController->printPersonPedigree($person, 1);
98
-				$content .= ob_get_clean();
99
-				$content .= '</td>';
100
-				$content .= '</tr></table>';
101
-				break;
102
-			case 'descendants':
103
-				$title .= I18N::translate('Descendants of %s', $person->getFullName());
104
-				$chartController = new HourglassController($person->getXref(), $details, false);
105
-				$controller->addInlineJavascript($chartController->setupJavascript());
106
-				ob_start();
107
-				$chartController->printDescendency($person, 1, false);
108
-				$content .= ob_get_clean();
109
-				break;
110
-			case 'hourglass':
111
-				$title .= I18N::translate('Hourglass chart of %s', $person->getFullName());
112
-				$chartController = new HourglassController($person->getXref(), $details, false);
113
-				$controller->addInlineJavascript($chartController->setupJavascript());
114
-				$content .= '<table cellspacing="0" cellpadding="0" border="0"><tr>';
115
-				$content .= '<td>';
116
-				ob_start();
117
-				$chartController->printDescendency($person, 1, false);
118
-				$content .= ob_get_clean();
119
-				$content .= '</td>';
120
-				$content .= '<td>';
121
-				ob_start();
122
-				$chartController->printPersonPedigree($person, 1);
123
-				$content .= ob_get_clean();
124
-				$content .= '</td>';
125
-				$content .= '</tr></table>';
126
-				break;
127
-			case 'treenav':
128
-				$title .= I18N::translate('Interactive tree of %s', $person->getFullName());
129
-				$mod = new InteractiveTreeModule(WT_MODULES_DIR . 'tree');
130
-				$tv  = new TreeView;
131
-				$content .= '<script>jQuery("head").append(\'<link rel="stylesheet" href="' . $mod->css() . '" type="text/css" />\');</script>';
132
-				$content .= '<script src="' . $mod->js() . '"></script>';
133
-				list($html, $js) = $tv->drawViewport($person, 2);
134
-				$content .= $html . '<script>' . $js . '</script>';
135
-				break;
85
+			    case 'pedigree':
86
+				    $title .= I18N::translate('Pedigree of %s', $person->getFullName());
87
+				    $chartController = new HourglassController($person->getXref(), $details, false);
88
+				    $controller->addInlineJavascript($chartController->setupJavascript());
89
+				    $content .= '<table cellspacing="0" cellpadding="0" border="0"><tr>';
90
+				    $content .= '<td>';
91
+				    ob_start();
92
+				    FunctionsPrint::printPedigreePerson($person, $details);
93
+				    $content .= ob_get_clean();
94
+				    $content .= '</td>';
95
+				    $content .= '<td>';
96
+				    ob_start();
97
+				    $chartController->printPersonPedigree($person, 1);
98
+				    $content .= ob_get_clean();
99
+				    $content .= '</td>';
100
+				    $content .= '</tr></table>';
101
+				    break;
102
+			    case 'descendants':
103
+				    $title .= I18N::translate('Descendants of %s', $person->getFullName());
104
+				    $chartController = new HourglassController($person->getXref(), $details, false);
105
+				    $controller->addInlineJavascript($chartController->setupJavascript());
106
+				    ob_start();
107
+				    $chartController->printDescendency($person, 1, false);
108
+				    $content .= ob_get_clean();
109
+				    break;
110
+			    case 'hourglass':
111
+				    $title .= I18N::translate('Hourglass chart of %s', $person->getFullName());
112
+				    $chartController = new HourglassController($person->getXref(), $details, false);
113
+				    $controller->addInlineJavascript($chartController->setupJavascript());
114
+				    $content .= '<table cellspacing="0" cellpadding="0" border="0"><tr>';
115
+				    $content .= '<td>';
116
+				    ob_start();
117
+				    $chartController->printDescendency($person, 1, false);
118
+				    $content .= ob_get_clean();
119
+				    $content .= '</td>';
120
+				    $content .= '<td>';
121
+				    ob_start();
122
+				    $chartController->printPersonPedigree($person, 1);
123
+				    $content .= ob_get_clean();
124
+				    $content .= '</td>';
125
+				    $content .= '</tr></table>';
126
+				    break;
127
+			    case 'treenav':
128
+				    $title .= I18N::translate('Interactive tree of %s', $person->getFullName());
129
+				    $mod = new InteractiveTreeModule(WT_MODULES_DIR . 'tree');
130
+				    $tv  = new TreeView;
131
+				    $content .= '<script>jQuery("head").append(\'<link rel="stylesheet" href="' . $mod->css() . '" type="text/css" />\');</script>';
132
+				    $content .= '<script src="' . $mod->js() . '"></script>';
133
+				    list($html, $js) = $tv->drawViewport($person, 2);
134
+				    $content .= $html . '<script>' . $js . '</script>';
135
+				    break;
136 136
 			}
137 137
 		} else {
138 138
 			$content = I18N::translate('You must select an individual and a chart type in the block preferences');
Please login to merge, or discard this patch.
app/Module/FamilyTreeFavoritesModule.php 1 patch
Switch Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -85,43 +85,43 @@  discard block
 block discarded – undo
85 85
 
86 86
 		$action = Filter::get('action');
87 87
 		switch ($action) {
88
-		case 'deletefav':
89
-			$favorite_id = Filter::getInteger('favorite_id');
90
-			if ($favorite_id) {
91
-				self::deleteFavorite($favorite_id);
92
-			}
93
-			break;
94
-		case 'addfav':
95
-			$gid      = Filter::get('gid', WT_REGEX_XREF);
96
-			$favnote  = Filter::get('favnote');
97
-			$url      = Filter::getUrl('url');
98
-			$favtitle = Filter::get('favtitle');
88
+		    case 'deletefav':
89
+			    $favorite_id = Filter::getInteger('favorite_id');
90
+			    if ($favorite_id) {
91
+				    self::deleteFavorite($favorite_id);
92
+			    }
93
+			    break;
94
+		    case 'addfav':
95
+			    $gid      = Filter::get('gid', WT_REGEX_XREF);
96
+			    $favnote  = Filter::get('favnote');
97
+			    $url      = Filter::getUrl('url');
98
+			    $favtitle = Filter::get('favtitle');
99 99
 
100
-			if ($gid) {
101
-				$record = GedcomRecord::getInstance($gid, $WT_TREE);
102
-				if ($record && $record->canShow()) {
103
-					self::addFavorite(array(
104
-						'user_id'   => $ctype === 'user' ? Auth::id() : null,
105
-						'gedcom_id' => $WT_TREE->getTreeId(),
106
-						'gid'       => $record->getXref(),
107
-						'type'      => $record::RECORD_TYPE,
108
-						'url'       => null,
109
-						'note'      => $favnote,
110
-						'title'     => $favtitle,
111
-					));
112
-				}
113
-			} elseif ($url) {
114
-				self::addFavorite(array(
115
-					'user_id'   => $ctype === 'user' ? Auth::id() : null,
116
-					'gedcom_id' => $WT_TREE->getTreeId(),
117
-					'gid'       => null,
118
-					'type'      => 'URL',
119
-					'url'       => $url,
120
-					'note'      => $favnote,
121
-					'title'     => $favtitle ? $favtitle : $url,
122
-				));
123
-			}
124
-			break;
100
+			    if ($gid) {
101
+				    $record = GedcomRecord::getInstance($gid, $WT_TREE);
102
+				    if ($record && $record->canShow()) {
103
+					    self::addFavorite(array(
104
+						    'user_id'   => $ctype === 'user' ? Auth::id() : null,
105
+						    'gedcom_id' => $WT_TREE->getTreeId(),
106
+						    'gid'       => $record->getXref(),
107
+						    'type'      => $record::RECORD_TYPE,
108
+						    'url'       => null,
109
+						    'note'      => $favnote,
110
+						    'title'     => $favtitle,
111
+					    ));
112
+				    }
113
+			    } elseif ($url) {
114
+				    self::addFavorite(array(
115
+					    'user_id'   => $ctype === 'user' ? Auth::id() : null,
116
+					    'gedcom_id' => $WT_TREE->getTreeId(),
117
+					    'gid'       => null,
118
+					    'type'      => 'URL',
119
+					    'url'       => $url,
120
+					    'note'      => $favnote,
121
+					    'title'     => $favtitle ? $favtitle : $url,
122
+				    ));
123
+			    }
124
+			    break;
125 125
 		}
126 126
 
127 127
 		$block = $this->getBlockSetting($block_id, 'block', '0');
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
 						if ($record instanceof Individual) {
169 169
 							$content .= '<div id="box' . $favorite["gid"] . '.0" class="person_box action_header';
170 170
 							switch ($record->getSex()) {
171
-							case 'M':
172
-								break;
173
-							case 'F':
174
-								$content .= 'F';
175
-								break;
176
-							default:
177
-								$content .= 'NN';
178
-								break;
171
+							    case 'M':
172
+								    break;
173
+							    case 'F':
174
+								    $content .= 'F';
175
+								    break;
176
+							    default:
177
+								    $content .= 'NN';
178
+								    break;
179 179
 							}
180 180
 							$content .= '">';
181 181
 							if ($ctype == "user" || Auth::isManager($WT_TREE)) {
Please login to merge, or discard this patch.
app/Module/ClippingsCartModule.php 1 patch
Switch Indentation   +131 added lines, -131 removed lines patch added patch discarded remove patch
@@ -75,37 +75,37 @@  discard block
 block discarded – undo
75 75
 		}
76 76
 
77 77
 		switch ($mod_action) {
78
-		case 'ajax':
79
-			$html = $this->getSidebarAjaxContent();
80
-			header('Content-Type: text/html; charset=UTF-8');
81
-			echo $html;
82
-			break;
83
-		case 'index':
84
-			global $controller, $WT_TREE;
85
-
86
-			$MAX_PEDIGREE_GENERATIONS = $WT_TREE->getPreference('MAX_PEDIGREE_GENERATIONS');
87
-
88
-			$clip_ctrl = new ClippingsCartController;
89
-			$cart      = Session::get('cart');
90
-
91
-			$controller = new PageController;
92
-			$controller
93
-				->setPageTitle($this->getTitle())
94
-				->pageHeader()
95
-				->addExternalJavascript(WT_AUTOCOMPLETE_JS_URL)
96
-				->addInlineJavascript('autocomplete();');
97
-
98
-			echo '<script>';
99
-			echo 'function radAncestors(elementid) {var radFamilies=document.getElementById(elementid);radFamilies.checked=true;}';
100
-			echo '</script>';
101
-
102
-			if (!$cart[$WT_TREE->getTreeId()]) {
103
-				echo '<h2>', I18N::translate('Family tree clippings cart'), '</h2>';
104
-			}
105
-
106
-			if ($clip_ctrl->action == 'add') {
107
-				$record = GedcomRecord::getInstance($clip_ctrl->id, $WT_TREE);
108
-				if ($clip_ctrl->type === 'FAM') { ?>
78
+		    case 'ajax':
79
+			    $html = $this->getSidebarAjaxContent();
80
+			    header('Content-Type: text/html; charset=UTF-8');
81
+			    echo $html;
82
+			    break;
83
+		    case 'index':
84
+			    global $controller, $WT_TREE;
85
+
86
+			    $MAX_PEDIGREE_GENERATIONS = $WT_TREE->getPreference('MAX_PEDIGREE_GENERATIONS');
87
+
88
+			    $clip_ctrl = new ClippingsCartController;
89
+			    $cart      = Session::get('cart');
90
+
91
+			    $controller = new PageController;
92
+			    $controller
93
+				    ->setPageTitle($this->getTitle())
94
+				    ->pageHeader()
95
+				    ->addExternalJavascript(WT_AUTOCOMPLETE_JS_URL)
96
+				    ->addInlineJavascript('autocomplete();');
97
+
98
+			    echo '<script>';
99
+			    echo 'function radAncestors(elementid) {var radFamilies=document.getElementById(elementid);radFamilies.checked=true;}';
100
+			    echo '</script>';
101
+
102
+			    if (!$cart[$WT_TREE->getTreeId()]) {
103
+				    echo '<h2>', I18N::translate('Family tree clippings cart'), '</h2>';
104
+			    }
105
+
106
+			    if ($clip_ctrl->action == 'add') {
107
+				    $record = GedcomRecord::getInstance($clip_ctrl->id, $WT_TREE);
108
+				    if ($clip_ctrl->type === 'FAM') { ?>
109 109
 					<form action="module.php" method="get">
110 110
 						<input type="hidden" name="mod" value="clippings">
111 111
 						<input type="hidden" name="mod_action" value="index">
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
 									<td class="optionbox">
132 132
 										<input type="radio" name="others" value="members" checked>
133 133
 										<?php echo /* I18N: %s is a family (husband + wife) */
134
-										I18N::translate('%s and their children', $record->getFullName()); ?>
134
+										    I18N::translate('%s and their children', $record->getFullName()); ?>
135 135
 									</td>
136 136
 								</tr>
137 137
 								<tr>
138 138
 									<td class="optionbox">
139 139
 										<input type="radio" name="others" value="descendants">
140 140
 										<?php echo /* I18N: %s is a family (husband + wife) */
141
-										I18N::translate('%s and their descendants', $record->getFullName()); ?>
141
+										    I18N::translate('%s and their descendants', $record->getFullName()); ?>
142 142
 									</td>
143 143
 								</tr>
144 144
 							</tbody>
@@ -179,14 +179,14 @@  discard block
 block discarded – undo
179 179
 										<label>
180 180
 											<input type="radio" name="others" value="parents">
181 181
 											<?php
182
-											if ($record->getSex() === 'F') {
183
-												echo /* I18N: %s is a woman's name */
184
-												I18N::translate('%s, her parents and siblings', $record->getFullName());
185
-											} else {
186
-												echo /* I18N: %s is a man's name */
187
-												I18N::translate('%s, his parents and siblings', $record->getFullName());
188
-											}
189
-											?>
182
+											    if ($record->getSex() === 'F') {
183
+												    echo /* I18N: %s is a woman's name */
184
+												    I18N::translate('%s, her parents and siblings', $record->getFullName());
185
+											    } else {
186
+												    echo /* I18N: %s is a man's name */
187
+												    I18N::translate('%s, his parents and siblings', $record->getFullName());
188
+											    }
189
+											    ?>
190 190
 										</label>
191 191
 									</td>
192 192
 								</tr>
@@ -195,14 +195,14 @@  discard block
 block discarded – undo
195 195
 										<label>
196 196
 											<input type="radio" name="others" value="members">
197 197
 											<?php
198
-											if ($record->getSex() === 'F') {
199
-												echo /* I18N: %s is a woman's name */
200
-												I18N::translate('%s, her spouses and children', $record->getFullName());
201
-											} else {
202
-												echo /* I18N: %s is a man's name */
203
-												I18N::translate('%s, his spouses and children', $record->getFullName());
204
-											}
205
-											?>
198
+											    if ($record->getSex() === 'F') {
199
+												    echo /* I18N: %s is a woman's name */
200
+												    I18N::translate('%s, her spouses and children', $record->getFullName());
201
+											    } else {
202
+												    echo /* I18N: %s is a man's name */
203
+												    I18N::translate('%s, his spouses and children', $record->getFullName());
204
+											    }
205
+											    ?>
206 206
 										</label>
207 207
 									</td>
208 208
 								</tr>
@@ -211,18 +211,18 @@  discard block
 block discarded – undo
211 211
 										<label>
212 212
 											<input type="radio" name="others" value="ancestors" id="ancestors">
213 213
 											<?php
214
-											if ($record->getSex() === 'F') {
215
-												echo /* I18N: %s is a woman's name */
216
-												I18N::translate('%s and her ancestors', $record->getFullName());
217
-											} else {
218
-												echo /* I18N: %s is a man's name */
219
-												I18N::translate('%s and his ancestors', $record->getFullName());
220
-											}
221
-											?>
214
+											    if ($record->getSex() === 'F') {
215
+												    echo /* I18N: %s is a woman's name */
216
+												    I18N::translate('%s and her ancestors', $record->getFullName());
217
+											    } else {
218
+												    echo /* I18N: %s is a man's name */
219
+												    I18N::translate('%s and his ancestors', $record->getFullName());
220
+											    }
221
+											    ?>
222 222
 										</label>
223 223
 										<br>
224 224
 										<?php echo I18N::translate('Number of generations'); ?>
225
-										<input type="text" size="5" name="level1" value="<?php echo $MAX_PEDIGREE_GENERATIONS; ?>" onfocus="radAncestors('ancestors');">
225
+    										<input type="text" size="5" name="level1" value="<?php echo $MAX_PEDIGREE_GENERATIONS; ?>" onfocus="radAncestors('ancestors');">
226 226
 									</td>
227 227
 								</tr>
228 228
 								<tr>
@@ -230,18 +230,18 @@  discard block
 block discarded – undo
230 230
 										<label>
231 231
 											<input type="radio" name="others" value="ancestorsfamilies" id="ancestorsfamilies">
232 232
 											<?php
233
-											if ($record->getSex() === 'F') {
234
-												echo /* I18N: %s is a woman's name */
235
-												I18N::translate('%s, her ancestors and their families', $record->getFullName());
236
-											} else {
237
-												echo /* I18N: %s is a man's name */
238
-												I18N::translate('%s, his ancestors and their families', $record->getFullName());
239
-											}
240
-											?>
233
+											    if ($record->getSex() === 'F') {
234
+												    echo /* I18N: %s is a woman's name */
235
+												    I18N::translate('%s, her ancestors and their families', $record->getFullName());
236
+											    } else {
237
+												    echo /* I18N: %s is a man's name */
238
+												    I18N::translate('%s, his ancestors and their families', $record->getFullName());
239
+											    }
240
+											    ?>
241 241
 										</label>
242 242
 										<br>
243 243
 										<?php echo I18N::translate('Number of generations'); ?>
244
-										<input type="text" size="5" name="level2" value="<?php echo $MAX_PEDIGREE_GENERATIONS; ?>" onfocus="radAncestors('ancestorsfamilies');">
244
+    										<input type="text" size="5" name="level2" value="<?php echo $MAX_PEDIGREE_GENERATIONS; ?>" onfocus="radAncestors('ancestorsfamilies');">
245 245
 									</td>
246 246
 								</tr>
247 247
 								<tr>
@@ -249,18 +249,18 @@  discard block
 block discarded – undo
249 249
 										<label>
250 250
 											<input type="radio" name="others" value="descendants" id="descendants">
251 251
 											<?php
252
-											if ($record->getSex() === 'F') {
253
-												echo /* I18N: %s is a woman's name */
254
-												I18N::translate('%s, her spouses and descendants', $record->getFullName());
255
-											} else {
256
-												echo /* I18N: %s is a man's name */
257
-												I18N::translate('%s, his spouses and descendants', $record->getFullName());
258
-											}
259
-											?>
252
+											    if ($record->getSex() === 'F') {
253
+												    echo /* I18N: %s is a woman's name */
254
+												    I18N::translate('%s, her spouses and descendants', $record->getFullName());
255
+											    } else {
256
+												    echo /* I18N: %s is a man's name */
257
+												    I18N::translate('%s, his spouses and descendants', $record->getFullName());
258
+											    }
259
+											    ?>
260 260
 										</label>
261 261
 										<br>
262 262
 										<?php echo I18N::translate('Number of generations'); ?>
263
-										<input type="text" size="5" name="level3" value="<?php echo $MAX_PEDIGREE_GENERATIONS; ?>" onfocus="radAncestors('descendants');">
263
+    										<input type="text" size="5" name="level3" value="<?php echo $MAX_PEDIGREE_GENERATIONS; ?>" onfocus="radAncestors('descendants');">
264 264
 									</td>
265 265
 								</tr>
266 266
 							</tbody>
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
 										<label>
303 303
 											<input type="radio" name="others" value="linked">
304 304
 											<?php echo /* I18N: %s is the name of a source */
305
-											I18N::translate('%s and the individuals that reference it.', $record->getFullName()); ?>
305
+											    I18N::translate('%s and the individuals that reference it.', $record->getFullName()); ?>
306 306
 										</label>
307 307
 									</td>
308 308
 								</tr>
@@ -317,12 +317,12 @@  discard block
 block discarded – undo
317 317
 						</table>
318 318
 					</form>
319 319
 				<?php }
320
-			}
320
+			    }
321 321
 
322
-			if (!$cart[$WT_TREE->getTreeId()]) {
323
-				if ($clip_ctrl->action != 'add') {
324
-					echo I18N::translate('The clippings cart allows you to take extracts from this family tree and download them as a GEDCOM file.');
325
-					?>
322
+			    if (!$cart[$WT_TREE->getTreeId()]) {
323
+				    if ($clip_ctrl->action != 'add') {
324
+					    echo I18N::translate('The clippings cart allows you to take extracts from this family tree and download them as a GEDCOM file.');
325
+					    ?>
326 326
 					<form method="get" name="addin" action="module.php">
327 327
 						<input type="hidden" name="mod" value="clippings">
328 328
 						<input type="hidden" name="mod_action" value="index">
@@ -342,25 +342,25 @@  discard block
 block discarded – undo
342 342
 									</td>
343 343
 									<td class="optionbox">
344 344
 										<?php echo FunctionsPrint::printFindIndividualLink('cart_item_id'); ?>
345
-										<?php echo FunctionsPrint::printFindFamilyLink('cart_item_id'); ?>
346
-										<?php echo FunctionsPrint::printFindSourceLink('cart_item_id', ''); ?>
347
-										<input type="submit" value="<?php echo /* I18N: A button label. */ I18N::translate('add'); ?>">
345
+    										<?php echo FunctionsPrint::printFindFamilyLink('cart_item_id'); ?>
346
+    										<?php echo FunctionsPrint::printFindSourceLink('cart_item_id', ''); ?>
347
+    										<input type="submit" value="<?php echo /* I18N: A button label. */ I18N::translate('add'); ?>">
348 348
 									</td>
349 349
 								</tr>
350 350
 							</tbody>
351 351
 						</table>
352 352
 					</form>
353 353
 					<?php
354
-				}
354
+				    }
355 355
 
356
-				// -- end new lines
357
-				echo I18N::translate('Your clippings cart is empty.');
358
-			} else {
359
-				// Keep track of the INDI from the parent page, otherwise it will
360
-				// get lost after ajax updates
361
-				$pid = Filter::get('pid', WT_REGEX_XREF);
356
+				    // -- end new lines
357
+				    echo I18N::translate('Your clippings cart is empty.');
358
+			    } else {
359
+				    // Keep track of the INDI from the parent page, otherwise it will
360
+				    // get lost after ajax updates
361
+				    $pid = Filter::get('pid', WT_REGEX_XREF);
362 362
 
363
-				if ($clip_ctrl->action !== 'download' && $clip_ctrl->action !== 'add') { ?>
363
+				    if ($clip_ctrl->action !== 'download' && $clip_ctrl->action !== 'add') { ?>
364 364
 					<form method="get" action="module.php">
365 365
 						<input type="hidden" name="mod" value="clippings">
366 366
 						<input type="hidden" name="mod_action" value="index">
@@ -468,9 +468,9 @@  discard block
 block discarded – undo
468 468
 									</td>
469 469
 									<td class="optionbox">
470 470
 										<?php echo FunctionsPrint::printFindIndividualLink('cart_item_id'); ?>
471
-										<?php echo FunctionsPrint::printFindFamilyLink('cart_item_id'); ?>
472
-										<?php echo FunctionsPrint::printFindSourceLink('cart_item_id'); ?>
473
-										<input type="submit" value="<?php echo /* I18N: A button label. */ I18N::translate('add'); ?>">
471
+    										<?php echo FunctionsPrint::printFindFamilyLink('cart_item_id'); ?>
472
+    										<?php echo FunctionsPrint::printFindSourceLink('cart_item_id'); ?>
473
+    										<input type="submit" value="<?php echo /* I18N: A button label. */ I18N::translate('add'); ?>">
474 474
 									</td>
475 475
 								</tr>
476 476
 							</tbody>
@@ -500,32 +500,32 @@  discard block
 block discarded – undo
500 500
 					</thead>
501 501
 					<tbody>
502 502
 						<?php
503
-						foreach (array_keys($cart[$WT_TREE->getTreeId()]) as $xref) {
504
-							$record = GedcomRecord::getInstance($xref, $WT_TREE);
505
-							if ($record) {
506
-								switch ($record::RECORD_TYPE) {
507
-								case 'INDI':
508
-									$icon = 'icon-indis';
509
-									break;
510
-								case 'FAM':
511
-									$icon = 'icon-sfamily';
512
-									break;
513
-								case 'SOUR':
514
-									$icon = 'icon-source';
515
-									break;
516
-								case 'REPO':
517
-									$icon = 'icon-repository';
518
-									break;
519
-								case 'NOTE':
520
-									$icon = 'icon-note';
521
-									break;
522
-								case 'OBJE':
523
-									$icon = 'icon-media';
524
-									break;
525
-								default:
526
-									$icon = 'icon-clippings';
527
-									break;
528
-								}
503
+						    foreach (array_keys($cart[$WT_TREE->getTreeId()]) as $xref) {
504
+							    $record = GedcomRecord::getInstance($xref, $WT_TREE);
505
+							    if ($record) {
506
+								    switch ($record::RECORD_TYPE) {
507
+								        case 'INDI':
508
+									        $icon = 'icon-indis';
509
+									        break;
510
+								        case 'FAM':
511
+									        $icon = 'icon-sfamily';
512
+									        break;
513
+								        case 'SOUR':
514
+									        $icon = 'icon-source';
515
+									        break;
516
+								        case 'REPO':
517
+									        $icon = 'icon-repository';
518
+									        break;
519
+								        case 'NOTE':
520
+									        $icon = 'icon-note';
521
+									        break;
522
+								        case 'OBJE':
523
+									        $icon = 'icon-media';
524
+									        break;
525
+								        default:
526
+									        $icon = 'icon-clippings';
527
+									        break;
528
+								    }
529 529
 								?>
530 530
 								<tr>
531 531
 									<td class="list_value">
@@ -544,9 +544,9 @@  discard block
 block discarded – undo
544 544
 				<?php
545 545
 			}
546 546
 			break;
547
-		default:
548
-			http_response_code(404);
549
-			break;
547
+		    default:
548
+			    http_response_code(404);
549
+			    break;
550 550
 		}
551 551
 	}
552 552
 
@@ -695,12 +695,12 @@  discard block
 block discarded – undo
695 695
 				$record = GedcomRecord::getInstance($xref, $WT_TREE);
696 696
 				if ($record instanceof Individual || $record instanceof Family) {
697 697
 					switch ($record::RECORD_TYPE) {
698
-					case 'INDI':
699
-						$icon = 'icon-indis';
700
-						break;
701
-					case 'FAM':
702
-						$icon = 'icon-sfamily';
703
-						break;
698
+					    case 'INDI':
699
+						    $icon = 'icon-indis';
700
+						    break;
701
+					    case 'FAM':
702
+						    $icon = 'icon-sfamily';
703
+						    break;
704 704
 					}
705 705
 					$out .= '<li>';
706 706
 					if (!empty($icon)) {
Please login to merge, or discard this patch.
app/Module/TopSurnamesModule.php 1 patch
Switch Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -98,23 +98,23 @@
 block discarded – undo
98 98
 		}
99 99
 
100 100
 		switch ($infoStyle) {
101
-		case 'tagcloud':
102
-			uksort($all_surnames, '\Fisharebest\Webtrees\I18N::strcasecmp');
103
-			$content = FunctionsPrintLists::surnameTagCloud($all_surnames, 'indilist.php', true, $WT_TREE);
104
-			break;
105
-		case 'list':
106
-			uasort($all_surnames, '\Fisharebest\Webtrees\Module\TopSurnamesModule::surnameCountSort');
107
-			$content = FunctionsPrintLists::surnameList($all_surnames, 1, true, 'indilist.php', $WT_TREE);
108
-			break;
109
-		case 'array':
110
-			uasort($all_surnames, '\Fisharebest\Webtrees\Module\TopSurnamesModule::surnameCountSort');
111
-			$content = FunctionsPrintLists::surnameList($all_surnames, 2, true, 'indilist.php', $WT_TREE);
112
-			break;
113
-		case 'table':
114
-		default:
115
-			uasort($all_surnames, '\Fisharebest\Webtrees\Module\TopSurnamesModule::surnameCountSort');
116
-			$content = FunctionsPrintLists::surnameTable($all_surnames, 'indilist.php', $WT_TREE);
117
-			break;
101
+		    case 'tagcloud':
102
+			    uksort($all_surnames, '\Fisharebest\Webtrees\I18N::strcasecmp');
103
+			    $content = FunctionsPrintLists::surnameTagCloud($all_surnames, 'indilist.php', true, $WT_TREE);
104
+			    break;
105
+		    case 'list':
106
+			    uasort($all_surnames, '\Fisharebest\Webtrees\Module\TopSurnamesModule::surnameCountSort');
107
+			    $content = FunctionsPrintLists::surnameList($all_surnames, 1, true, 'indilist.php', $WT_TREE);
108
+			    break;
109
+		    case 'array':
110
+			    uasort($all_surnames, '\Fisharebest\Webtrees\Module\TopSurnamesModule::surnameCountSort');
111
+			    $content = FunctionsPrintLists::surnameList($all_surnames, 2, true, 'indilist.php', $WT_TREE);
112
+			    break;
113
+		    case 'table':
114
+		    default:
115
+			    uasort($all_surnames, '\Fisharebest\Webtrees\Module\TopSurnamesModule::surnameCountSort');
116
+			    $content = FunctionsPrintLists::surnameTable($all_surnames, 'indilist.php', $WT_TREE);
117
+			    break;
118 118
 		}
119 119
 
120 120
 		if ($template) {
Please login to merge, or discard this patch.
app/Module/SiteMapModule.php 1 patch
Switch Indentation   +88 added lines, -88 removed lines patch added patch discarded remove patch
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
 	 */
53 53
 	public function modAction($mod_action) {
54 54
 		switch ($mod_action) {
55
-		case 'admin':
56
-			$this->admin();
57
-			break;
58
-		case 'generate':
59
-			$this->generate(Filter::get('file'));
60
-			break;
61
-		default:
62
-			http_response_code(404);
55
+		    case 'admin':
56
+			    $this->admin();
57
+			    break;
58
+		    case 'generate':
59
+			    $this->generate(Filter::get('file'));
60
+			    break;
61
+		    default:
62
+			    http_response_code(404);
63 63
 		}
64 64
 	}
65 65
 
@@ -160,86 +160,86 @@  discard block
 block discarded – undo
160 160
 			$data    = '<url><loc>' . WT_BASE_URL . 'index.php?ctype=gedcom&amp;ged=' . $tree->getNameUrl() . '</loc></url>' . PHP_EOL;
161 161
 			$records = array();
162 162
 			switch ($rec_type) {
163
-			case 'i':
164
-				$rows = Database::prepare(
165
-					"SELECT i_id AS xref, i_gedcom AS gedcom" .
166
-					" FROM `##individuals`" .
167
-					" WHERE i_file = :tree_id" .
168
-					" ORDER BY i_id" .
169
-					" LIMIT :limit OFFSET :offset"
170
-				)->execute(array(
171
-					'tree_id' => $ged_id,
172
-					'limit'   => self::RECORDS_PER_VOLUME,
173
-					'offset'  => self::RECORDS_PER_VOLUME * $volume,
174
-				))->fetchAll();
175
-				foreach ($rows as $row) {
176
-					$records[] = Individual::getInstance($row->xref, $tree, $row->gedcom);
177
-				}
178
-				break;
179
-			case 's':
180
-				$rows = Database::prepare(
181
-					"SELECT s_id AS xref, s_gedcom AS gedcom" .
182
-					" FROM `##sources`" .
183
-					" WHERE s_file = :tree_id" .
184
-					" ORDER BY s_id" .
185
-					" LIMIT :limit OFFSET :offset"
186
-				)->execute(array(
187
-					'tree_id' => $ged_id,
188
-					'limit'   => self::RECORDS_PER_VOLUME,
189
-					'offset'  => self::RECORDS_PER_VOLUME * $volume,
190
-				))->fetchAll();
191
-				foreach ($rows as $row) {
192
-					$records[] = Source::getInstance($row->xref, $tree, $row->gedcom);
193
-				}
194
-				break;
195
-			case 'r':
196
-				$rows = Database::prepare(
197
-					"SELECT o_id AS xref, o_gedcom AS gedcom" .
198
-					" FROM `##other`" .
199
-					" WHERE o_file = :tree_id AND o_type = 'REPO'" .
200
-					" ORDER BY o_id" .
201
-					" LIMIT :limit OFFSET :offset"
202
-				)->execute(array(
203
-					'tree_id' => $ged_id,
204
-					'limit'   => self::RECORDS_PER_VOLUME,
205
-					'offset'  => self::RECORDS_PER_VOLUME * $volume,
206
-				))->fetchAll();
207
-				foreach ($rows as $row) {
208
-					$records[] = Repository::getInstance($row->xref, $tree, $row->gedcom);
209
-				}
210
-				break;
211
-			case 'n':
212
-				$rows = Database::prepare(
213
-					"SELECT o_id AS xref, o_gedcom AS gedcom" .
214
-					" FROM `##other`" .
215
-					" WHERE o_file = :tree_id AND o_type = 'NOTE'" .
216
-					" ORDER BY o_id" .
217
-					" LIMIT :limit OFFSET :offset"
218
-				)->execute(array(
219
-					'tree_id' => $ged_id,
220
-					'limit'   => self::RECORDS_PER_VOLUME,
221
-					'offset'  => self::RECORDS_PER_VOLUME * $volume,
222
-				))->fetchAll();
223
-				foreach ($rows as $row) {
224
-					$records[] = Note::getInstance($row->xref, $tree, $row->gedcom);
225
-				}
226
-				break;
227
-			case 'm':
228
-				$rows = Database::prepare(
229
-					"SELECT m_id AS xref, m_gedcom AS gedcom" .
230
-					" FROM `##media`" .
231
-					" WHERE m_file = :tree_id" .
232
-					" ORDER BY m_id" .
233
-					" LIMIT :limit OFFSET :offset"
234
-				)->execute(array(
235
-					'tree_id' => $ged_id,
236
-					'limit'   => self::RECORDS_PER_VOLUME,
237
-					'offset'  => self::RECORDS_PER_VOLUME * $volume,
238
-				))->fetchAll();
239
-				foreach ($rows as $row) {
240
-					$records[] = Media::getInstance($row->xref, $tree, $row->gedcom);
241
-				}
242
-				break;
163
+			    case 'i':
164
+				    $rows = Database::prepare(
165
+					    "SELECT i_id AS xref, i_gedcom AS gedcom" .
166
+					    " FROM `##individuals`" .
167
+					    " WHERE i_file = :tree_id" .
168
+					    " ORDER BY i_id" .
169
+					    " LIMIT :limit OFFSET :offset"
170
+				    )->execute(array(
171
+					    'tree_id' => $ged_id,
172
+					    'limit'   => self::RECORDS_PER_VOLUME,
173
+					    'offset'  => self::RECORDS_PER_VOLUME * $volume,
174
+				    ))->fetchAll();
175
+				    foreach ($rows as $row) {
176
+					    $records[] = Individual::getInstance($row->xref, $tree, $row->gedcom);
177
+				    }
178
+				    break;
179
+			    case 's':
180
+				    $rows = Database::prepare(
181
+					    "SELECT s_id AS xref, s_gedcom AS gedcom" .
182
+					    " FROM `##sources`" .
183
+					    " WHERE s_file = :tree_id" .
184
+					    " ORDER BY s_id" .
185
+					    " LIMIT :limit OFFSET :offset"
186
+				    )->execute(array(
187
+					    'tree_id' => $ged_id,
188
+					    'limit'   => self::RECORDS_PER_VOLUME,
189
+					    'offset'  => self::RECORDS_PER_VOLUME * $volume,
190
+				    ))->fetchAll();
191
+				    foreach ($rows as $row) {
192
+					    $records[] = Source::getInstance($row->xref, $tree, $row->gedcom);
193
+				    }
194
+				    break;
195
+			    case 'r':
196
+				    $rows = Database::prepare(
197
+					    "SELECT o_id AS xref, o_gedcom AS gedcom" .
198
+					    " FROM `##other`" .
199
+					    " WHERE o_file = :tree_id AND o_type = 'REPO'" .
200
+					    " ORDER BY o_id" .
201
+					    " LIMIT :limit OFFSET :offset"
202
+				    )->execute(array(
203
+					    'tree_id' => $ged_id,
204
+					    'limit'   => self::RECORDS_PER_VOLUME,
205
+					    'offset'  => self::RECORDS_PER_VOLUME * $volume,
206
+				    ))->fetchAll();
207
+				    foreach ($rows as $row) {
208
+					    $records[] = Repository::getInstance($row->xref, $tree, $row->gedcom);
209
+				    }
210
+				    break;
211
+			    case 'n':
212
+				    $rows = Database::prepare(
213
+					    "SELECT o_id AS xref, o_gedcom AS gedcom" .
214
+					    " FROM `##other`" .
215
+					    " WHERE o_file = :tree_id AND o_type = 'NOTE'" .
216
+					    " ORDER BY o_id" .
217
+					    " LIMIT :limit OFFSET :offset"
218
+				    )->execute(array(
219
+					    'tree_id' => $ged_id,
220
+					    'limit'   => self::RECORDS_PER_VOLUME,
221
+					    'offset'  => self::RECORDS_PER_VOLUME * $volume,
222
+				    ))->fetchAll();
223
+				    foreach ($rows as $row) {
224
+					    $records[] = Note::getInstance($row->xref, $tree, $row->gedcom);
225
+				    }
226
+				    break;
227
+			    case 'm':
228
+				    $rows = Database::prepare(
229
+					    "SELECT m_id AS xref, m_gedcom AS gedcom" .
230
+					    " FROM `##media`" .
231
+					    " WHERE m_file = :tree_id" .
232
+					    " ORDER BY m_id" .
233
+					    " LIMIT :limit OFFSET :offset"
234
+				    )->execute(array(
235
+					    'tree_id' => $ged_id,
236
+					    'limit'   => self::RECORDS_PER_VOLUME,
237
+					    'offset'  => self::RECORDS_PER_VOLUME * $volume,
238
+				    ))->fetchAll();
239
+				    foreach ($rows as $row) {
240
+					    $records[] = Media::getInstance($row->xref, $tree, $row->gedcom);
241
+				    }
242
+				    break;
243 243
 			}
244 244
 			foreach ($records as $record) {
245 245
 				if ($record->canShowName()) {
Please login to merge, or discard this patch.
app/Module/FamilyTreeNewsModule.php 1 patch
Switch Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,12 +75,12 @@
 block discarded – undo
75 75
 		global $ctype, $WT_TREE;
76 76
 
77 77
 		switch (Filter::get('action')) {
78
-		case 'deletenews':
79
-			$news_id = Filter::get('news_id');
80
-			if ($news_id) {
81
-				Database::prepare("DELETE FROM `##news` WHERE news_id = ?")->execute(array($news_id));
82
-			}
83
-			break;
78
+		    case 'deletenews':
79
+			    $news_id = Filter::get('news_id');
80
+			    if ($news_id) {
81
+				    Database::prepare("DELETE FROM `##news` WHERE news_id = ?")->execute(array($news_id));
82
+			    }
83
+			    break;
84 84
 		}
85 85
 
86 86
 		$more_news = Filter::getInteger('more_news');
Please login to merge, or discard this patch.
app/Module/FamiliesSidebarModule.php 1 patch
Switch Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -45,13 +45,13 @@  discard block
 block discarded – undo
45 45
 	 */
46 46
 	public function modAction($mod_action) {
47 47
 		switch ($mod_action) {
48
-		case 'ajax':
49
-			header('Content-Type: text/html; charset=UTF-8');
50
-			echo $this->getSidebarAjaxContent();
51
-			break;
52
-		default:
53
-			http_response_code(404);
54
-			break;
48
+		    case 'ajax':
49
+			    header('Content-Type: text/html; charset=UTF-8');
50
+			    echo $this->getSidebarAjaxContent();
51
+			    break;
52
+		    default:
53
+			    http_response_code(404);
54
+			    break;
55 55
 		}
56 56
 	}
57 57
 
@@ -149,18 +149,18 @@  discard block
 block discarded – undo
149 149
 		$out = '<form method="post" action="module.php?mod=' . $this->getName() . '&amp;mod_action=ajax" onsubmit="return false;"><input type="search" name="sb_fam_name" id="sb_fam_name" placeholder="' . I18N::translate('Search') . '"><p>';
150 150
 		foreach ($initials as $letter => $count) {
151 151
 			switch ($letter) {
152
-			case '@':
153
-				$html = I18N::translateContext('Unknown surname', '…');
154
-				break;
155
-			case ',':
156
-				$html = I18N::translate('None');
157
-				break;
158
-			case ' ':
159
-				$html = '&nbsp;';
160
-				break;
161
-			default:
162
-				$html = $letter;
163
-				break;
152
+			    case '@':
153
+				    $html = I18N::translateContext('Unknown surname', '…');
154
+				    break;
155
+			    case ',':
156
+				    $html = I18N::translate('None');
157
+				    break;
158
+			    case ' ':
159
+				    $html = '&nbsp;';
160
+				    break;
161
+			    default:
162
+				    $html = $letter;
163
+				    break;
164 164
 			}
165 165
 			$html = '<a href="module.php?mod=' . $this->getName() . '&amp;mod_action=ajax&amp;alpha=' . urlencode($letter) . '" class="sb_fam_letter">' . $html . '</a>';
166 166
 			$out .= $html . " ";
Please login to merge, or discard this patch.