Completed
Pull Request — master (#1461)
by Rico
07:40
created
app/Census/AbstractCensusColumnCondition.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 	 * @return bool
95 95
 	 */
96 96
 	private function isChild(Individual $individual) {
97
-		$age = (int)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
97
+		$age = (int) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0);
98 98
 
99 99
 		return $age < $this->age_adult;
100 100
 	}
Please login to merge, or discard this patch.
app/Census/CensusColumnChildrenLiving.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,6 +49,6 @@
 block discarded – undo
49 49
 			}
50 50
 		}
51 51
 
52
-		return (string)$count;
52
+		return (string) $count;
53 53
 	}
54 54
 }
Please login to merge, or discard this patch.
app/Census/CensusColumnChildrenDied.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,6 +49,6 @@
 block discarded – undo
49 49
 			}
50 50
 		}
51 51
 
52
-		return (string)$count;
52
+		return (string) $count;
53 53
 	}
54 54
 }
Please login to merge, or discard this patch.
app/Census/CensusColumnAgeMale5Years.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
 				$years -= $years % 5;
41 41
 			}
42 42
 
43
-			return (string)$years;
43
+			return (string) $years;
44 44
 		}
45 45
 	}
46 46
 }
Please login to merge, or discard this patch.
index_edit.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
 			}
128 128
 		}
129 129
 	}
130
-	if ($user_id < 0 || $gedcom_id < 0 ) {
130
+	if ($user_id < 0 || $gedcom_id < 0) {
131 131
 		header('Location: admin.php');
132 132
 	} elseif ($user_id > 0) {
133 133
 		header('Location: index.php?ctype=user&ged=' . $WT_TREE->getNameUrl());
@@ -371,7 +371,7 @@  discard block
 block discarded – undo
371 371
 						<?= FontAwesome::decorativeIcon('save') ?>
372 372
 						<?= I18N::translate('save') ?>
373 373
 					</button>
374
-					<?php if ($user_id < 0 || $gedcom_id < 0 ): ?>
374
+					<?php if ($user_id < 0 || $gedcom_id < 0): ?>
375 375
 						<a class="btn btn-secondary" href="admin.php">
376 376
 					<?php elseif ($user_id > 0): ?>
377 377
 						<a class="btn btn-secondary" href="index.php?ctype=user&amp;ged=<?= $WT_TREE->getNameHtml() ?>">
Please login to merge, or discard this patch.
statistics.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -532,7 +532,7 @@
 block discarded – undo
532 532
 							<?= I18N::translate('Select the desired age interval') ?>
533 533
 						</label>
534 534
 						<br>
535
-						<?= Bootstrap4::select(['1,5,10,20,30,40,50,60,70,80,90,100' => I18N::plural('%s year', '%s years', 10, I18N::number(10)), '5,20,40,60,75,80,85,90' => I18N::plural('%s year', '%s years', 20, I18N::number(20)), '10,25,50,75,100' => I18N::plural('%s year', '%s years', 25, I18N::number(25)),],'1,5,10,20,30,40,50,60,70,80,90,100', ['id' => 'x-axis-boundaries-ages', 'name' => 'x-axis-boundaries-ages']) ?>
535
+						<?= Bootstrap4::select(['1,5,10,20,30,40,50,60,70,80,90,100' => I18N::plural('%s year', '%s years', 10, I18N::number(10)), '5,20,40,60,75,80,85,90' => I18N::plural('%s year', '%s years', 20, I18N::number(20)), '10,25,50,75,100' => I18N::plural('%s year', '%s years', 25, I18N::number(25)), ], '1,5,10,20,30,40,50,60,70,80,90,100', ['id' => 'x-axis-boundaries-ages', 'name' => 'x-axis-boundaries-ages']) ?>
536 536
 					</div>
537 537
 
538 538
 					<div id="x_years_m" style="display:none;">
Please login to merge, or discard this patch.
admin_site_upgrade.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,10 +29,10 @@
 block discarded – undo
29 29
 // Check for updates
30 30
 $latest_version_txt = Functions::fetchLatestVersion();
31 31
 if (preg_match('/^[0-9.]+\|[0-9.]+\|/', $latest_version_txt)) {
32
-	list($latest_version, , $download_url) = explode('|', $latest_version_txt);
32
+	list($latest_version,, $download_url) = explode('|', $latest_version_txt);
33 33
 } else {
34 34
 	// Cannot determine the latest version
35
-	list($latest_version, , $download_url) = explode('|', '||');
35
+	list($latest_version,, $download_url) = explode('|', '||');
36 36
 }
37 37
 
38 38
 $latest_version_html = '<span dir="ltr">' . $latest_version . '</span>';
Please login to merge, or discard this patch.
app/Module/ResearchTaskModule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
 			'jd'      => $end_jd,
78 78
 		])->fetchOneColumn();
79 79
 
80
-		$records = array_map(function($xref) use ($WT_TREE) {
80
+		$records = array_map(function ($xref) use ($WT_TREE) {
81 81
 			return GedcomRecord::getInstance($xref, $WT_TREE);
82 82
 		}, $xrefs);
83 83
 
Please login to merge, or discard this patch.
app/Module.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@
 block discarded – undo
280 280
 		// Exclude disabled modules
281 281
 		$enabled_modules = Database::prepare("SELECT module_name, status FROM `##module` WHERE status='enabled'")->fetchOneColumn();
282 282
 
283
-		return array_filter($modules, function(AbstractModule $module) use ($enabled_modules) {
283
+		return array_filter($modules, function (AbstractModule $module) use ($enabled_modules) {
284 284
 			return in_array($module->getName(), $enabled_modules);
285 285
 		});
286 286
 	}
Please login to merge, or discard this patch.