Completed
Push — 1.7 ( ce7091...0d97cf )
by Greg
14:14 queued 07:41
created
app/Module/ReviewChangesModule.php 1 patch
Braces   +16 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,14 +31,17 @@  discard block
 block discarded – undo
31 31
 /**
32 32
  * Class ReviewChangesModule
33 33
  */
34
-class ReviewChangesModule extends AbstractModule implements ModuleBlockInterface {
34
+class ReviewChangesModule extends AbstractModule implements ModuleBlockInterface
35
+{
35 36
 	/** {@inheritdoc} */
36
-	public function getTitle() {
37
+	public function getTitle()
38
+	{
37 39
 		return /* I18N: Name of a module */ I18N::translate('Pending changes');
38 40
 	}
39 41
 
40 42
 	/** {@inheritdoc} */
41
-	public function getDescription() {
43
+	public function getDescription()
44
+	{
42 45
 		return /* I18N: Description of the “Pending changes” module */ I18N::translate('A list of changes that need to be reviewed by a moderator, and email notifications.');
43 46
 	}
44 47
 
@@ -51,7 +54,8 @@  discard block
 block discarded – undo
51 54
 	 *
52 55
 	 * @return string
53 56
 	 */
54
-	public function getBlock($block_id, $template = true, $cfg = array()) {
57
+	public function getBlock($block_id, $template = true, $cfg = array())
58
+	{
55 59
 		global $ctype, $WT_TREE;
56 60
 
57 61
 		$sendmail = $this->getBlockSetting($block_id, 'sendmail', '1');
@@ -143,17 +147,20 @@  discard block
 block discarded – undo
143 147
 	}
144 148
 
145 149
 	/** {@inheritdoc} */
146
-	public function loadAjax() {
150
+	public function loadAjax()
151
+	{
147 152
 		return false;
148 153
 	}
149 154
 
150 155
 	/** {@inheritdoc} */
151
-	public function isUserBlock() {
156
+	public function isUserBlock()
157
+	{
152 158
 		return true;
153 159
 	}
154 160
 
155 161
 	/** {@inheritdoc} */
156
-	public function isGedcomBlock() {
162
+	public function isGedcomBlock()
163
+	{
157 164
 		return true;
158 165
 	}
159 166
 
@@ -162,7 +169,8 @@  discard block
 block discarded – undo
162 169
 	 *
163 170
 	 * @param int $block_id
164 171
 	 */
165
-	public function configureBlock($block_id) {
172
+	public function configureBlock($block_id)
173
+	{
166 174
 		if (Filter::postBool('save') && Filter::checkCsrf()) {
167 175
 			$this->setBlockSetting($block_id, 'days', Filter::postInteger('num', 1, 180, 1));
168 176
 			$this->setBlockSetting($block_id, 'sendmail', Filter::postBool('sendmail'));
Please login to merge, or discard this patch.
app/Module/MissingFactsReportModule.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,15 +22,18 @@  discard block
 block discarded – undo
22 22
 /**
23 23
  * Class MissingFactsReportModule
24 24
  */
25
-class MissingFactsReportModule extends AbstractModule implements ModuleReportInterface {
25
+class MissingFactsReportModule extends AbstractModule implements ModuleReportInterface
26
+{
26 27
 	/** {@inheritdoc} */
27
-	public function getTitle() {
28
+	public function getTitle()
29
+	{
28 30
 		// This text also appears in the .XML file - update both together
29 31
 		return /* I18N: Name of a module/report */ I18N::translate('Missing data');
30 32
 	}
31 33
 
32 34
 	/** {@inheritdoc} */
33
-	public function getDescription() {
35
+	public function getDescription()
36
+	{
34 37
 		// This text also appears in the .XML file - update both together
35 38
 		return /* I18N: Description of the “Missing data” */ I18N::translate('A report of the information that is missing for an individual and their relatives.');
36 39
 	}
@@ -42,7 +45,8 @@  discard block
 block discarded – undo
42 45
 	 *
43 46
 	 * @return int
44 47
 	 */
45
-	public function defaultAccessLevel() {
48
+	public function defaultAccessLevel()
49
+	{
46 50
 		return Auth::PRIV_USER;
47 51
 	}
48 52
 
@@ -51,7 +55,8 @@  discard block
 block discarded – undo
51 55
 	 *
52 56
 	 * @return Menu
53 57
 	 */
54
-	public function getReportMenu() {
58
+	public function getReportMenu()
59
+	{
55 60
 		global $WT_TREE;
56 61
 
57 62
 		return new Menu(
Please login to merge, or discard this patch.
app/Module/InteractiveTree/TreeView.php 1 patch
Braces   +24 added lines, -12 removed lines patch added patch discarded remove patch
@@ -23,7 +23,8 @@  discard block
 block discarded – undo
23 23
 /**
24 24
  * Class TreeView
25 25
  */
26
-class TreeView {
26
+class TreeView
27
+{
27 28
 	/** @var string HTML element name */
28 29
 	private $name;
29 30
 
@@ -35,7 +36,8 @@  discard block
 block discarded – undo
35 36
 	 *
36 37
 	 * @param string $name the name of the TreeView object’s instance
37 38
 	 */
38
-	public function __construct($name = 'tree') {
39
+	public function __construct($name = 'tree')
40
+	{
39 41
 		$this->name         = $name;
40 42
 		$this->all_partners = Filter::cookie('allPartners', 'true|false', 'true');
41 43
 	}
@@ -49,7 +51,8 @@  discard block
 block discarded – undo
49 51
 	 *
50 52
 	 * @return string[]  HTML and Javascript
51 53
 	 */
52
-	public function drawViewport(Individual $root_person, $generations) {
54
+	public function drawViewport(Individual $root_person, $generations)
55
+	{
53 56
 		$html = '
54 57
 			<a name="tv_content"></a>
55 58
 			<div id="' . $this->name . '_out" class="tv_out">
@@ -83,7 +86,8 @@  discard block
 block discarded – undo
83 86
 	 *
84 87
 	 * @return string
85 88
 	 */
86
-	public function getPersons($list) {
89
+	public function getPersons($list)
90
+	{
87 91
 		global $WT_TREE;
88 92
 
89 93
 		$list = explode(';', $list);
@@ -124,7 +128,8 @@  discard block
 block discarded – undo
124 128
 	 *
125 129
 	 * @return string
126 130
 	 */
127
-	public function getDetails(Individual $individual) {
131
+	public function getDetails(Individual $individual)
132
+	{
128 133
 		$html = $this->getPersonDetails($individual, null);
129 134
 		foreach ($individual->getSpouseFamilies() as $family) {
130 135
 			$spouse = $family->getSpouse($individual);
@@ -144,7 +149,8 @@  discard block
 block discarded – undo
144 149
 	 *
145 150
 	 * @return string
146 151
 	 */
147
-	private function getPersonDetails(Individual $individual, Family $family = null) {
152
+	private function getPersonDetails(Individual $individual, Family $family = null)
153
+	{
148 154
 		$hmtl = $this->getThumbnail($individual);
149 155
 		$hmtl .= '<a class="tv_link" href="' . $individual->getHtmlUrl() . '">' . $individual->getFullName() . '</a> <a href="module.php?mod=tree&amp;mod_action=treeview&amp;rootid=' . $individual->getXref() . '" title="' . I18N::translate('Interactive tree of %s', strip_tags($individual->getFullName())) . '" class="icon-button_indi tv_link tv_treelink"></a>';
150 156
 		foreach ($individual->getFacts(WT_EVENTS_BIRT, true) as $fact) {
@@ -171,7 +177,8 @@  discard block
 block discarded – undo
171 177
 	 *
172 178
 	 * @return string
173 179
 	 */
174
-	private function drawChildren(array $familyList, $gen = 1, $ajax = false) {
180
+	private function drawChildren(array $familyList, $gen = 1, $ajax = false)
181
+	{
175 182
 		$html          = '';
176 183
 		$children2draw = array();
177 184
 		$f2load        = array();
@@ -230,7 +237,8 @@  discard block
 block discarded – undo
230 237
 	 * (for "life partner") here fits much better than "spouse" or "mate"
231 238
 	 * to translate properly the modern french meaning of "conjoint"
232 239
 	 */
233
-	private function drawPerson(Individual $person, $gen, $state, Family $pfamily = null, $order = null, $isRoot = false) {
240
+	private function drawPerson(Individual $person, $gen, $state, Family $pfamily = null, $order = null, $isRoot = false)
241
+	{
234 242
 		if ($gen < 0) {
235 243
 			return '';
236 244
 		}
@@ -333,7 +341,8 @@  discard block
 block discarded – undo
333 341
 	 *
334 342
 	 * @return string
335 343
 	 */
336
-	private function drawPersonName(Individual $individual, $dashed = '') {
344
+	private function drawPersonName(Individual $individual, $dashed = '')
345
+	{
337 346
 		if ($this->all_partners === 'true') {
338 347
 			$family = $individual->getPrimaryChildFamily();
339 348
 			if ($family) {
@@ -367,7 +376,8 @@  discard block
 block discarded – undo
367 376
 	 *
368 377
 	 * @return string
369 378
 	 */
370
-	private function getThumbnail(Individual $individual) {
379
+	private function getThumbnail(Individual $individual)
380
+	{
371 381
 		if ($individual->getTree()->getPreference('SHOW_HIGHLIGHT_IMAGES')) {
372 382
 			return $individual->displayImage();
373 383
 		} else {
@@ -386,14 +396,16 @@  discard block
 block discarded – undo
386 396
 	 * and some other browsers (ex: firefox) shows a <div> tag, which have no size limit in height
387 397
 	 * Therefore, Firefox is a good choice to print very big trees.
388 398
 	 */
389
-	private function drawVerticalLine($order) {
399
+	private function drawVerticalLine($order)
400
+	{
390 401
 		return '<td class="tv_vline tv_vline_' . $order . '"><div class="tv_vline tv_vline_' . $order . '"></div></td>';
391 402
 	}
392 403
 
393 404
 	/**
394 405
 	 * Draw an horizontal line
395 406
 	 */
396
-	private function drawHorizontalLine() {
407
+	private function drawHorizontalLine()
408
+	{
397 409
 		return '<td class="tv_hline"><div class="tv_hline"></div></td>';
398 410
 	}
399 411
 }
Please login to merge, or discard this patch.
app/Module/DescendancyModule.php 1 patch
Braces   +26 added lines, -13 removed lines patch added patch discarded remove patch
@@ -25,15 +25,18 @@  discard block
 block discarded – undo
25 25
 /**
26 26
  * Class DescendancyModule
27 27
  */
28
-class DescendancyModule extends AbstractModule implements ModuleSidebarInterface {
28
+class DescendancyModule extends AbstractModule implements ModuleSidebarInterface
29
+{
29 30
 	/** {@inheritdoc} */
30
-	public function getTitle() {
31
+	public function getTitle()
32
+	{
31 33
 		return /* I18N: Name of a module/sidebar */
32 34
 			I18N::translate('Descendants');
33 35
 	}
34 36
 
35 37
 	/** {@inheritdoc} */
36
-	public function getDescription() {
38
+	public function getDescription()
39
+	{
37 40
 		return /* I18N: Description of the “Descendants” module */
38 41
 			I18N::translate('A sidebar showing the descendants of an individual.');
39 42
 	}
@@ -44,7 +47,8 @@  discard block
 block discarded – undo
44 47
 	 *
45 48
 	 * @param string $mod_action
46 49
 	 */
47
-	public function modAction($mod_action) {
50
+	public function modAction($mod_action)
51
+	{
48 52
 		global $WT_TREE;
49 53
 
50 54
 		header('Content-Type: text/html; charset=UTF-8');
@@ -67,17 +71,20 @@  discard block
 block discarded – undo
67 71
 	}
68 72
 
69 73
 	/** {@inheritdoc} */
70
-	public function defaultSidebarOrder() {
74
+	public function defaultSidebarOrder()
75
+	{
71 76
 		return 30;
72 77
 	}
73 78
 
74 79
 	/** {@inheritdoc} */
75
-	public function hasSidebarContent() {
80
+	public function hasSidebarContent()
81
+	{
76 82
 		return true;
77 83
 	}
78 84
 
79 85
 	/** {@inheritdoc} */
80
-	public function getSidebarAjaxContent() {
86
+	public function getSidebarAjaxContent()
87
+	{
81 88
 		return '';
82 89
 	}
83 90
 
@@ -86,7 +93,8 @@  discard block
 block discarded – undo
86 93
 	 *
87 94
 	 * @return string
88 95
 	 */
89
-	public function getSidebarContent() {
96
+	public function getSidebarContent()
97
+	{
90 98
 		global $controller;
91 99
 
92 100
 		$controller->addInlineJavascript('
@@ -146,7 +154,8 @@  discard block
 block discarded – undo
146 154
 	 *
147 155
 	 * @return string
148 156
 	 */
149
-	public function getPersonLi(Individual $person, $generations = 0) {
157
+	public function getPersonLi(Individual $person, $generations = 0)
158
+	{
150 159
 		$icon     = $generations > 0 ? 'icon-minus' : 'icon-plus';
151 160
 		$lifespan = $person->canShow() ? '(' . $person->getLifeSpan() . ')' : '';
152 161
 		$spouses  = $generations > 0 ? $this->loadSpouses($person, 0) : '';
@@ -171,7 +180,8 @@  discard block
 block discarded – undo
171 180
 	 *
172 181
 	 * @return string
173 182
 	 */
174
-	public function getFamilyLi(Family $family, Individual $person, $generations = 0) {
183
+	public function getFamilyLi(Family $family, Individual $person, $generations = 0)
184
+	{
175 185
 		$spouse = $family->getSpouse($person);
176 186
 		if ($spouse) {
177 187
 			$spouse_name = $spouse->getSexImage() . $spouse->getFullName();
@@ -201,7 +211,8 @@  discard block
 block discarded – undo
201 211
 	 *
202 212
 	 * @return string
203 213
 	 */
204
-	public function search($query, Tree $tree) {
214
+	public function search($query, Tree $tree)
215
+	{
205 216
 		if (strlen($query) < 2) {
206 217
 			return '';
207 218
 		}
@@ -239,7 +250,8 @@  discard block
 block discarded – undo
239 250
 	 *
240 251
 	 * @return string
241 252
 	 */
242
-	public function loadSpouses(Individual $person, $generations) {
253
+	public function loadSpouses(Individual $person, $generations)
254
+	{
243 255
 		$out = '';
244 256
 		if ($person && $person->canShow()) {
245 257
 			foreach ($person->getSpouseFamilies() as $family) {
@@ -261,7 +273,8 @@  discard block
 block discarded – undo
261 273
 	 *
262 274
 	 * @return string
263 275
 	 */
264
-	public function loadChildren(Family $family, $generations) {
276
+	public function loadChildren(Family $family, $generations)
277
+	{
265 278
 		$out = '';
266 279
 		if ($family->canShow()) {
267 280
 			$children = $family->getChildren();
Please login to merge, or discard this patch.
app/Module/PageMenuModule.php 1 patch
Braces   +10 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,14 +22,17 @@  discard block
 block discarded – undo
22 22
 /**
23 23
  * Class PageMenuModule
24 24
  */
25
-class PageMenuModule extends AbstractModule implements ModuleMenuInterface {
25
+class PageMenuModule extends AbstractModule implements ModuleMenuInterface
26
+{
26 27
 	/** {@inheritdoc} */
27
-	public function getTitle() {
28
+	public function getTitle()
29
+	{
28 30
 		return /* I18N: Name of a module/menu */ I18N::translate('Edit');
29 31
 	}
30 32
 
31 33
 	/** {@inheritdoc} */
32
-	public function getDescription() {
34
+	public function getDescription()
35
+	{
33 36
 		return /* I18N: Description of the “Edit” module */ I18N::translate('An edit menu for individuals, families, sources, etc.');
34 37
 	}
35 38
 
@@ -38,7 +41,8 @@  discard block
 block discarded – undo
38 41
 	 *
39 42
 	 * @return int
40 43
 	 */
41
-	public function defaultMenuOrder() {
44
+	public function defaultMenuOrder()
45
+	{
42 46
 		return 10;
43 47
 	}
44 48
 
@@ -47,7 +51,8 @@  discard block
 block discarded – undo
47 51
 	 *
48 52
 	 * @return Menu|null
49 53
 	 */
50
-	public function getMenu() {
54
+	public function getMenu()
55
+	{
51 56
 		global $controller, $WT_TREE;
52 57
 
53 58
 		$menu = null;
Please login to merge, or discard this patch.
app/Module/AncestorsChartModule.php 1 patch
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,13 +23,15 @@  discard block
 block discarded – undo
23 23
 /**
24 24
  * Class AncestorsChartModule
25 25
  */
26
-class AncestorsChartModule extends AbstractModule implements ModuleChartInterface {
26
+class AncestorsChartModule extends AbstractModule implements ModuleChartInterface
27
+{
27 28
 	/**
28 29
 	 * How should this module be labelled on tabs, menus, etc.?
29 30
 	 *
30 31
 	 * @return string
31 32
 	 */
32
-	public function getTitle() {
33
+	public function getTitle()
34
+	{
33 35
 		return /* I18N: Name of a module/chart */ I18N::translate('Ancestors');
34 36
 	}
35 37
 
@@ -38,7 +40,8 @@  discard block
 block discarded – undo
38 40
 	 *
39 41
 	 * @return string
40 42
 	 */
41
-	public function getDescription() {
43
+	public function getDescription()
44
+	{
42 45
 		return /* I18N: Description of the “AncestorsChart” module */ I18N::translate('A chart of an individual’s ancestors.');
43 46
 	}
44 47
 
@@ -49,7 +52,8 @@  discard block
 block discarded – undo
49 52
 	 *
50 53
 	 * @return int
51 54
 	 */
52
-	public function defaultAccessLevel() {
55
+	public function defaultAccessLevel()
56
+	{
53 57
 		return Auth::PRIV_PRIVATE;
54 58
 	}
55 59
 
@@ -58,7 +62,8 @@  discard block
 block discarded – undo
58 62
 	 *
59 63
 	 * @return Menu|null
60 64
 	 */
61
-	public function getChartMenu(Individual $individual) {
65
+	public function getChartMenu(Individual $individual)
66
+	{
62 67
 		return new Menu(
63 68
 			$this->getTitle(),
64 69
 			'ancestry.php?rootid=' . $individual->getXref() . '&amp;ged=' . $individual->getTree()->getNameUrl(),
@@ -72,7 +77,8 @@  discard block
 block discarded – undo
72 77
 	 *
73 78
 	 * @return Menu|null
74 79
 	 */
75
-	public function getBoxChartMenu(Individual $individual) {
80
+	public function getBoxChartMenu(Individual $individual)
81
+	{
76 82
 		return $this->getChartMenu($individual);
77 83
 	}
78 84
 }
Please login to merge, or discard this patch.
app/Module/ResearchTaskModule.php 1 patch
Braces   +16 added lines, -8 removed lines patch added patch discarded remove patch
@@ -28,19 +28,22 @@  discard block
 block discarded – undo
28 28
 /**
29 29
  * Class ResearchTaskModule
30 30
  */
31
-class ResearchTaskModule extends AbstractModule implements ModuleBlockInterface {
31
+class ResearchTaskModule extends AbstractModule implements ModuleBlockInterface
32
+{
32 33
 	const DEFAULT_SHOW_OTHER      = '1';
33 34
 	const DEFAULT_SHOW_UNASSIGNED = '1';
34 35
 	const DEFAULT_SHOW_FUTURE     = '1';
35 36
 	const DEFAULT_BLOCK           = '1';
36 37
 
37 38
 	/** {@inheritdoc} */
38
-	public function getTitle() {
39
+	public function getTitle()
40
+	{
39 41
 		return /* I18N: Name of a module. Tasks that need further research. */ I18N::translate('Research tasks');
40 42
 	}
41 43
 
42 44
 	/** {@inheritdoc} */
43
-	public function getDescription() {
45
+	public function getDescription()
46
+	{
44 47
 		return /* I18N: Description of “Research tasks” module */ I18N::translate('A list of tasks and activities that are linked to the family tree.');
45 48
 	}
46 49
 
@@ -53,7 +56,8 @@  discard block
 block discarded – undo
53 56
 	 *
54 57
 	 * @return string
55 58
 	 */
56
-	public function getBlock($block_id, $template = true, $cfg = array()) {
59
+	public function getBlock($block_id, $template = true, $cfg = array())
60
+	{
57 61
 		global $ctype, $controller, $WT_TREE;
58 62
 
59 63
 		$show_other      = $this->getBlockSetting($block_id, 'show_other', self::DEFAULT_SHOW_OTHER);
@@ -163,17 +167,20 @@  discard block
 block discarded – undo
163 167
 	}
164 168
 
165 169
 	/** {@inheritdoc} */
166
-	public function loadAjax() {
170
+	public function loadAjax()
171
+	{
167 172
 		return false;
168 173
 	}
169 174
 
170 175
 	/** {@inheritdoc} */
171
-	public function isUserBlock() {
176
+	public function isUserBlock()
177
+	{
172 178
 		return true;
173 179
 	}
174 180
 
175 181
 	/** {@inheritdoc} */
176
-	public function isGedcomBlock() {
182
+	public function isGedcomBlock()
183
+	{
177 184
 		return true;
178 185
 	}
179 186
 
@@ -182,7 +189,8 @@  discard block
 block discarded – undo
182 189
 	 *
183 190
 	 * @param int $block_id
184 191
 	 */
185
-	public function configureBlock($block_id) {
192
+	public function configureBlock($block_id)
193
+	{
186 194
 		if (Filter::postBool('save') && Filter::checkCsrf()) {
187 195
 			$this->setBlockSetting($block_id, 'show_other', Filter::postBool('show_other'));
188 196
 			$this->setBlockSetting($block_id, 'show_unassigned', Filter::postBool('show_unassigned'));
Please login to merge, or discard this patch.
app/Module/StatisticsChartModule.php 1 patch
Braces   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -23,13 +23,15 @@  discard block
 block discarded – undo
23 23
 /**
24 24
  * Class StatisticsChartModule
25 25
  */
26
-class StatisticsChartModule extends AbstractModule implements ModuleChartInterface {
26
+class StatisticsChartModule extends AbstractModule implements ModuleChartInterface
27
+{
27 28
 	/**
28 29
 	 * How should this module be labelled on tabs, menus, etc.?
29 30
 	 *
30 31
 	 * @return string
31 32
 	 */
32
-	public function getTitle() {
33
+	public function getTitle()
34
+	{
33 35
 		return /* I18N: Name of a module/chart */ I18N::translate('Statistics');
34 36
 	}
35 37
 
@@ -38,7 +40,8 @@  discard block
 block discarded – undo
38 40
 	 *
39 41
 	 * @return string
40 42
 	 */
41
-	public function getDescription() {
43
+	public function getDescription()
44
+	{
42 45
 		return /* I18N: Description of the “StatisticsChart” module */ I18N::translate('Various statistics charts.');
43 46
 	}
44 47
 
@@ -49,7 +52,8 @@  discard block
 block discarded – undo
49 52
 	 *
50 53
 	 * @return int
51 54
 	 */
52
-	public function defaultAccessLevel() {
55
+	public function defaultAccessLevel()
56
+	{
53 57
 		return Auth::PRIV_PRIVATE;
54 58
 	}
55 59
 
@@ -58,7 +62,8 @@  discard block
 block discarded – undo
58 62
 	 *
59 63
 	 * @return Menu|null
60 64
 	 */
61
-	public function getChartMenu(Individual $individual) {
65
+	public function getChartMenu(Individual $individual)
66
+	{
62 67
 		return new Menu(
63 68
 			$this->getTitle(),
64 69
 			'statistics.php?ged=' . $individual->getTree()->getNameUrl(),
@@ -72,7 +77,8 @@  discard block
 block discarded – undo
72 77
 	 *
73 78
 	 * @return Menu|null
74 79
 	 */
75
-	public function getBoxChartMenu(Individual $individual) {
80
+	public function getBoxChartMenu(Individual $individual)
81
+	{
76 82
 		return null;
77 83
 	}
78 84
 }
Please login to merge, or discard this patch.
app/Module/IndividualFactsTabModule.php 1 patch
Braces   +28 added lines, -14 removed lines patch added patch discarded remove patch
@@ -30,29 +30,35 @@  discard block
 block discarded – undo
30 30
 /**
31 31
  * Class IndividualFactsTabModule
32 32
  */
33
-class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterface {
33
+class IndividualFactsTabModule extends AbstractModule implements ModuleTabInterface
34
+{
34 35
 	/** {@inheritdoc} */
35
-	public function getTitle() {
36
+	public function getTitle()
37
+	{
36 38
 		return /* I18N: Name of a module/tab on the individual page. */ I18N::translate('Facts and events');
37 39
 	}
38 40
 
39 41
 	/** {@inheritdoc} */
40
-	public function getDescription() {
42
+	public function getDescription()
43
+	{
41 44
 		return /* I18N: Description of the “Facts and events” module */ I18N::translate('A tab showing the facts and events of an individual.');
42 45
 	}
43 46
 
44 47
 	/** {@inheritdoc} */
45
-	public function defaultTabOrder() {
48
+	public function defaultTabOrder()
49
+	{
46 50
 		return 10;
47 51
 	}
48 52
 
49 53
 	/** {@inheritdoc} */
50
-	public function isGrayedOut() {
54
+	public function isGrayedOut()
55
+	{
51 56
 		return false;
52 57
 	}
53 58
 
54 59
 	/** {@inheritdoc} */
55
-	public function getTabContent() {
60
+	public function getTabContent()
61
+	{
56 62
 		global $controller;
57 63
 		$EXPAND_HISTO_EVENTS = false;
58 64
 
@@ -170,17 +176,20 @@  discard block
 block discarded – undo
170 176
 	}
171 177
 
172 178
 	/** {@inheritdoc} */
173
-	public function hasTabContent() {
179
+	public function hasTabContent()
180
+	{
174 181
 		return true;
175 182
 	}
176 183
 
177 184
 	/** {@inheritdoc} */
178
-	public function canLoadAjax() {
185
+	public function canLoadAjax()
186
+	{
179 187
 		return !Auth::isSearchEngine(); // Search engines cannot use AJAX
180 188
 	}
181 189
 
182 190
 	/** {@inheritdoc} */
183
-	public function getPreLoadContent() {
191
+	public function getPreLoadContent()
192
+	{
184 193
 		return '';
185 194
 	}
186 195
 
@@ -192,7 +201,8 @@  discard block
 block discarded – undo
192 201
 	 *
193 202
 	 * @return Fact[]
194 203
 	 */
195
-	private static function spouseFacts(Individual $individual, Individual $spouse) {
204
+	private static function spouseFacts(Individual $individual, Individual $spouse)
205
+	{
196 206
 		$SHOW_RELATIVES_EVENTS = $individual->getTree()->getPreference('SHOW_RELATIVES_EVENTS');
197 207
 
198 208
 		$facts = array();
@@ -226,7 +236,8 @@  discard block
 block discarded – undo
226 236
 	 *
227 237
 	 * @return Fact[]
228 238
 	 */
229
-	private static function childFacts(Individual $person, Family $family, $option, $relation) {
239
+	private static function childFacts(Individual $person, Family $family, $option, $relation)
240
+	{
230 241
 		global $controller;
231 242
 
232 243
 		$SHOW_RELATIVES_EVENTS = $person->getTree()->getPreference('SHOW_RELATIVES_EVENTS');
@@ -359,7 +370,8 @@  discard block
 block discarded – undo
359 370
 	 *
360 371
 	 * @return Fact[]
361 372
 	 */
362
-	private static function parentFacts(Individual $person, $sosa) {
373
+	private static function parentFacts(Individual $person, $sosa)
374
+	{
363 375
 		global $controller;
364 376
 
365 377
 		$SHOW_RELATIVES_EVENTS = $person->getTree()->getPreference('SHOW_RELATIVES_EVENTS');
@@ -459,7 +471,8 @@  discard block
 block discarded – undo
459 471
 	 *
460 472
 	 * @return Fact[]
461 473
 	 */
462
-	private static function historicalFacts(Individual $person) {
474
+	private static function historicalFacts(Individual $person)
475
+	{
463 476
 		$SHOW_RELATIVES_EVENTS = $person->getTree()->getPreference('SHOW_RELATIVES_EVENTS');
464 477
 
465 478
 		$facts = array();
@@ -496,7 +509,8 @@  discard block
 block discarded – undo
496 509
 	 *
497 510
 	 * @return Fact[]
498 511
 	 */
499
-	private static function associateFacts(Individual $person) {
512
+	private static function associateFacts(Individual $person)
513
+	{
500 514
 		$facts = array();
501 515
 
502 516
 		$associates = array_merge(
Please login to merge, or discard this patch.