Completed
Pull Request — master (#1882)
by Rico
18:58 queued 10:07
created
resources/views/modules/gedcom_stats/config.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@  discard block
 block discarded – undo
8 8
 		</legend>
9 9
 		<div class="col-sm-9">
10 10
 			<?= Bootstrap4::checkbox(/* I18N: label for yes/no option */
11
-				I18N::translate('Show date of last update'), false, ['name' => 'show_last_update', 'checked' => (bool) $show_last_update]) ?>
11
+                I18N::translate('Show date of last update'), false, ['name' => 'show_last_update', 'checked' => (bool) $show_last_update]) ?>
12 12
 		</div>
13 13
 	</div>
14 14
 </fieldset>
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 			<?= Bootstrap4::checkbox(I18N::translate('Most common surnames'), false, ['name' => 'show_common_surnames', 'checked' => (bool) $show_common_surnames]) ?>
51 51
 			<label for="number_of_surnames">
52 52
 				<?= /* I18N: ... to show in a list */
53
-				I18N::translate('Number of surnames') ?>
53
+                I18N::translate('Number of surnames') ?>
54 54
 				<input
55 55
 					class="form-control"
56 56
 					id="number_of_surnames"
Please login to merge, or discard this patch.
resources/views/modules/faq/edit.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 	<div class="row form-group">
35 35
 		<label for="xref" class="col-sm-3 col-form-label">
36 36
 			<?= /* I18N: Label for a configuration option */
37
-			I18N::translate('Show this block for which languages') ?>
37
+            I18N::translate('Show this block for which languages') ?>
38 38
 		</label>
39 39
 
40 40
 		<div class="col-sm-9">
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 			<?= Bootstrap4::select(['' => I18N::translate('All')] + $tree_names, $tree->getName(), ['id' => 'gedcom_id', 'name' => 'gedcom_id']) ?>
62 62
 			<p class="small text-muted">
63 63
 				<?= /* I18N: FAQ = “Frequently Asked Question” */
64
-				I18N::translate('An FAQ can be displayed on just one of the family trees, or on all the family trees.') ?>
64
+                I18N::translate('An FAQ can be displayed on just one of the family trees, or on all the family trees.') ?>
65 65
 			</p>
66 66
 		</div>
67 67
 	</div>
Please login to merge, or discard this patch.
resources/views/modules/relationships_chart/config.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		<div class="row form-group">
16 16
 			<label class="col-sm-3 col-form-label" for="relationship-ancestors-<?= $tree->getTreeId() ?>">
17 17
 				<?= /* I18N: Configuration option */
18
-				I18N::translate('Relationships') ?>
18
+                I18N::translate('Relationships') ?>
19 19
 			</label>
20 20
 			<div class="col-sm-9">
21 21
 				<?= Bootstrap4::select($ancestors_options, $tree->getPreference('RELATIONSHIP_ANCESTORS', $default_ancestors), ['id' => 'relationship-ancestors-' . $tree->getTreeId(), 'name' => 'relationship-ancestors-' . $tree->getTreeId()]) ?>
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 			<div class="row">
27 27
 				<legend class="col-form-label col-sm-3">
28 28
 					<?= /* I18N: Configuration option */
29
-					I18N::translate('How much recursion to use when searching for relationships') ?>
29
+                    I18N::translate('How much recursion to use when searching for relationships') ?>
30 30
 				</legend>
31 31
 				<div class="col-sm-9">
32 32
 					<?= Bootstrap4::radioButtons('relationship-recursion-' . $tree->getTreeId(), $recursion_options, $tree->getPreference('RELATIONSHIP_RECURSION', $default_recursion), true) ?>
Please login to merge, or discard this patch.
resources/views/calendar-page.php 1 patch
Indentation   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -42,24 +42,24 @@  discard block
 block discarded – undo
42 42
 			</th>
43 43
 			<td class="wt-page-options-value" colspan="3">
44 44
 				<?php
45
-					for ($n = 1, $months_in_year = $cal_date->monthsInYear(); $n <= $months_in_year; ++$n) {
46
-						$month_name = $cal_date->monthNameNominativeCase($n, $cal_date->isLeapYear());
47
-						$m          = array_search($n, $cal_date::$MONTH_ABBREV);
48
-						if ($n === 6 && $cal_date instanceof JewishDate && !$cal_date->isLeapYear()) {
49
-							// No month 6 in Jewish non-leap years.
50
-							continue;
51
-						}
52
-						if ($n === 7 && $cal_date instanceof JewishDate && !$cal_date->isLeapYear()) {
53
-							// Month 7 is ADR in Jewish non-leap years.
54
-							$m = 'ADR';
55
-						}
56
-						if ($n === $cal_date->m) {
57
-							$month_name = '<span class="error">' . $month_name . '</span>';
58
-						}
59
-						echo '<a href="' . e(route('calendar', ['cal' => $cal, 'day' => $cal_date->d, 'month' => $m, 'year' => $cal_date->y, 'filterev' => $filterev, 'filterof' => $filterof, 'filtersx' => $filtersx, 'view' => 'month', 'ged' => $tree->getName()])) . '" rel="nofollow">', $month_name, '</a>';
60
-						echo ' | ';
61
-					}
62
-				?>
45
+                    for ($n = 1, $months_in_year = $cal_date->monthsInYear(); $n <= $months_in_year; ++$n) {
46
+                        $month_name = $cal_date->monthNameNominativeCase($n, $cal_date->isLeapYear());
47
+                        $m          = array_search($n, $cal_date::$MONTH_ABBREV);
48
+                        if ($n === 6 && $cal_date instanceof JewishDate && !$cal_date->isLeapYear()) {
49
+                            // No month 6 in Jewish non-leap years.
50
+                            continue;
51
+                        }
52
+                        if ($n === 7 && $cal_date instanceof JewishDate && !$cal_date->isLeapYear()) {
53
+                            // Month 7 is ADR in Jewish non-leap years.
54
+                            $m = 'ADR';
55
+                        }
56
+                        if ($n === $cal_date->m) {
57
+                            $month_name = '<span class="error">' . $month_name . '</span>';
58
+                        }
59
+                        echo '<a href="' . e(route('calendar', ['cal' => $cal, 'day' => $cal_date->d, 'month' => $m, 'year' => $cal_date->y, 'filterev' => $filterev, 'filterof' => $filterof, 'filtersx' => $filtersx, 'view' => 'month', 'ged' => $tree->getName()])) . '" rel="nofollow">', $month_name, '</a>';
60
+                        echo ' | ';
61
+                    }
62
+                ?>
63 63
 				<a href="<?= e(route('calendar', ['cal' => $cal, 'day' => min($cal_date->d, $today->daysInMonth()), 'month' => $today_month, 'year' => $today->y, 'filterev' => $filterev, 'filterof' => $filterof, 'filtersx' => $filtersx, 'view' => 'month', 'ged' => $tree->getName()])) ?>" rel="nofollow">
64 64
 					<b><?= $today->format('%F %Y') ?></b>
65 65
 				</a>
@@ -169,16 +169,16 @@  discard block
 block discarded – undo
169 169
 			</td>
170 170
 			<td class="topbottombar width50">
171 171
 				<?php
172
-					$n = 0;
173
-					foreach (Date::calendarNames() as $newcal => $cal_name) {
174
-						$tmp = $cal_date->convertToCalendar($newcal);
175
-						if ($tmp->inValidRange()) {
176
-							if ($n++) {
177
-								echo ' | ';
178
-							}
179
-							echo '<a ' . (get_class($tmp) === get_class($cal_date) ? 'class="error"' : '') . 'href="' . e(route('calendar', ['cal' => $tmp->format('%@'), 'day' => $tmp->d, 'month' => $tmp->format('%O'), 'year' => $tmp->y, 'filterev' => $filterev, 'filterof' => $filterof, 'filtersx' => $filtersx, 'view' => $view, 'ged' => $tree->getName()])) . '" rel="nofollow">', $cal_name, '</a>';
180
-						}
181
-					} ?>
172
+                    $n = 0;
173
+                    foreach (Date::calendarNames() as $newcal => $cal_name) {
174
+                        $tmp = $cal_date->convertToCalendar($newcal);
175
+                        if ($tmp->inValidRange()) {
176
+                            if ($n++) {
177
+                                echo ' | ';
178
+                            }
179
+                            echo '<a ' . (get_class($tmp) === get_class($cal_date) ? 'class="error"' : '') . 'href="' . e(route('calendar', ['cal' => $tmp->format('%@'), 'day' => $tmp->d, 'month' => $tmp->format('%O'), 'year' => $tmp->y, 'filterev' => $filterev, 'filterof' => $filterof, 'filtersx' => $filtersx, 'view' => $view, 'ged' => $tree->getName()])) . '" rel="nofollow">', $cal_name, '</a>';
180
+                        }
181
+                    } ?>
182 182
 			</td>
183 183
 		</tr>
184 184
 	</table>
Please login to merge, or discard this patch.
resources/views/place-events.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -21,10 +21,10 @@  discard block
 block discarded – undo
21 21
 			<p><?= I18N::translate('No results found.') ?></p>
22 22
 		<?php else: ?>
23 23
 			<?= view('lists/individuals-table', [
24
-			'individuals' => $indilist,
25
-			'sosa'        => false,
26
-			'tree'        => $tree,
27
-			]) ?>
24
+            'individuals' => $indilist,
25
+            'sosa'        => false,
26
+            'tree'        => $tree,
27
+            ]) ?>
28 28
 		<?php endif ?>
29 29
 	</div>
30 30
 
@@ -33,8 +33,8 @@  discard block
 block discarded – undo
33 33
 			<p><?= I18N::translate('No results found.') ?></p>
34 34
 		<?php else: ?>
35 35
 			<?= view('lists/families-table', [
36
-				'families' => $famlist,
37
-			]) ?>
36
+                'families' => $famlist,
37
+            ]) ?>
38 38
 		<?php endif ?>
39 39
 	</div>
40 40
 </div>
Please login to merge, or discard this patch.
resources/views/interactive-tree-page.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 		<div class="col-sm-3 wt-page-options-label"></div>
26 26
 		<div class="col-sm-9 wt-page-options-value">
27 27
 			<input class="btn btn-primary" type="submit" value="<?= /* I18N: A button label. */
28
-			I18N::translate('view') ?>">
28
+            I18N::translate('view') ?>">
29 29
 		</div>
30 30
 	</div>
31 31
 </form>
Please login to merge, or discard this patch.
resources/views/edit/edit-fact.php 1 patch
Indentation   +71 added lines, -71 removed lines patch added patch discarded remove patch
@@ -14,76 +14,76 @@  discard block
 block discarded – undo
14 14
 	<?php FunctionsEdit::createEditForm($edit_fact) ?>
15 15
 
16 16
 	<?php
17
-	$level1type = $edit_fact->getTag();
18
-	switch ($record::RECORD_TYPE) {
19
-		case 'REPO':
20
-			// REPO:NAME facts may take a NOTE (but the REPO record may not).
21
-			if ($level1type === 'NAME') {
22
-				echo view('cards/add-note', [
23
-					'level' => 2,
24
-					'tree' => $tree,
25
-				]);
26
-				echo view('addSimpleTag($tree, ', [
27
-					'level' => 2,
28
-					'tree' => $tree,
29
-				]);
30
-			}
31
-			break;
32
-		case 'FAM':
33
-		case 'INDI':
34
-			// FAM and INDI records have real facts. They can take NOTE/SOUR/OBJE/etc.
35
-			if ($level1type !== 'SEX' && $level1type !== 'NOTE' && $level1type !== 'ALIA') {
36
-				if ($level1type !== 'SOUR') {
37
-					echo view('cards/add-source-citation', [
38
-						'level'          => 2,
39
-						'full_citations' => $tree->getPreference('FULL_SOURCES'),
40
-						'tree'           => $tree,
41
-					]);				}
42
-				if ($level1type !== 'OBJE') {
43
-					if ($tree->getPreference('MEDIA_UPLOAD') >= Auth::accessLevel($tree)) {
44
-						echo view('cards/add-media-object', [
45
-							'level' => 2,
46
-							'tree'  => $tree,
47
-						]);
48
-					}
49
-				}
50
-				echo view('cards/add-note', [
51
-					'level' => 2,
52
-					'tree' => $tree,
53
-				]);
54
-				echo view('cards/add-shared-note', [
55
-					'level' => 2,
56
-					'tree' => $tree,
57
-				]);
58
-				if ($level1type !== 'ASSO' && $level1type !== 'NOTE' && $level1type !== 'SOUR') {
59
-					echo view('cards/add-associate', [
60
-						'id'    => Uuid::uuid4()->toString(),
61
-						'level' => 2,
62
-						'tree' => $tree,
63
-					]);
64
-				}
65
-				// allow to add godfather and godmother for CHR fact or best man and bridesmaid  for MARR fact in one window
66
-				if (in_array($level1type, Config::twoAssociates())) {
67
-					echo view('cards/add-associate', [
68
-						'id'    => Uuid::uuid4()->toString(),
69
-						'level' => 2,
70
-						'tree' => $tree,
71
-					]);
72
-				}
73
-				if ($level1type !== 'SOUR') {
74
-					echo view('cards/add-restriction', [
75
-						'level' => 2,
76
-						'tree' => $tree,
77
-					]);
78
-				}
79
-			}
80
-			break;
81
-		default:
82
-			// Other types of record do not have these lower-level records
83
-			break;
84
-	}
17
+    $level1type = $edit_fact->getTag();
18
+    switch ($record::RECORD_TYPE) {
19
+        case 'REPO':
20
+            // REPO:NAME facts may take a NOTE (but the REPO record may not).
21
+            if ($level1type === 'NAME') {
22
+                echo view('cards/add-note', [
23
+                    'level' => 2,
24
+                    'tree' => $tree,
25
+                ]);
26
+                echo view('addSimpleTag($tree, ', [
27
+                    'level' => 2,
28
+                    'tree' => $tree,
29
+                ]);
30
+            }
31
+            break;
32
+        case 'FAM':
33
+        case 'INDI':
34
+            // FAM and INDI records have real facts. They can take NOTE/SOUR/OBJE/etc.
35
+            if ($level1type !== 'SEX' && $level1type !== 'NOTE' && $level1type !== 'ALIA') {
36
+                if ($level1type !== 'SOUR') {
37
+                    echo view('cards/add-source-citation', [
38
+                        'level'          => 2,
39
+                        'full_citations' => $tree->getPreference('FULL_SOURCES'),
40
+                        'tree'           => $tree,
41
+                    ]);				}
42
+                if ($level1type !== 'OBJE') {
43
+                    if ($tree->getPreference('MEDIA_UPLOAD') >= Auth::accessLevel($tree)) {
44
+                        echo view('cards/add-media-object', [
45
+                            'level' => 2,
46
+                            'tree'  => $tree,
47
+                        ]);
48
+                    }
49
+                }
50
+                echo view('cards/add-note', [
51
+                    'level' => 2,
52
+                    'tree' => $tree,
53
+                ]);
54
+                echo view('cards/add-shared-note', [
55
+                    'level' => 2,
56
+                    'tree' => $tree,
57
+                ]);
58
+                if ($level1type !== 'ASSO' && $level1type !== 'NOTE' && $level1type !== 'SOUR') {
59
+                    echo view('cards/add-associate', [
60
+                        'id'    => Uuid::uuid4()->toString(),
61
+                        'level' => 2,
62
+                        'tree' => $tree,
63
+                    ]);
64
+                }
65
+                // allow to add godfather and godmother for CHR fact or best man and bridesmaid  for MARR fact in one window
66
+                if (in_array($level1type, Config::twoAssociates())) {
67
+                    echo view('cards/add-associate', [
68
+                        'id'    => Uuid::uuid4()->toString(),
69
+                        'level' => 2,
70
+                        'tree' => $tree,
71
+                    ]);
72
+                }
73
+                if ($level1type !== 'SOUR') {
74
+                    echo view('cards/add-restriction', [
75
+                        'level' => 2,
76
+                        'tree' => $tree,
77
+                    ]);
78
+                }
79
+            }
80
+            break;
81
+        default:
82
+            // Other types of record do not have these lower-level records
83
+            break;
84
+    }
85 85
 
86
-	?>
86
+    ?>
87 87
 
88 88
 	<div class="form-group row">
89 89
 		<label class="col-sm-3 col-form-label" for="keep_chan">
@@ -103,12 +103,12 @@  discard block
 block discarded – undo
103 103
 			<button class="btn btn-primary" type="submit">
104 104
 				<?= FontAwesome::decorativeIcon('save') ?>
105 105
 				<?= /* I18N: A button label. */
106
-				I18N::translate('save') ?>
106
+                I18N::translate('save') ?>
107 107
 			</button>
108 108
 			<a class="btn btn-secondary" href="<?= e($record->url()) ?>">
109 109
 				<?= FontAwesome::decorativeIcon('cancel') ?>
110 110
 				<?= /* I18N: A button label. */
111
-				I18N::translate('cancel') ?>
111
+                I18N::translate('cancel') ?>
112 112
 			</a>
113 113
 			<?php if ($can_edit_raw): ?>
114 114
 				<a class="btn btn-link" href="<?= e(route('edit-raw-fact', ['xref' => $record->getXref(), 'fact_id' => $edit_fact->getFactId(), 'ged' => $tree->getName()])) ?>">
Please login to merge, or discard this patch.
resources/views/edit/link-spouse-to-individual.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
 			<button class="btn btn-primary" type="submit">
26 26
 				<?= FontAwesome::decorativeIcon('save') ?>
27 27
 				<?= /* I18N: A button label. */
28
-				I18N::translate('save') ?>
28
+                I18N::translate('save') ?>
29 29
 			</button>
30 30
 			<a class="btn btn-secondary" href="<?= e($individual->url()) ?>">
31 31
 				<?= FontAwesome::decorativeIcon('cancel') ?>
32 32
 				<?= /* I18N: A button label. */
33
-				I18N::translate('cancel') ?>
33
+                I18N::translate('cancel') ?>
34 34
 			</a>
35 35
 		</div>
36 36
 	</div>
Please login to merge, or discard this patch.
resources/views/edit/change-family-members.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,12 +73,12 @@
 block discarded – undo
73 73
 			<button class="btn btn-primary" type="submit">
74 74
 				<?= FontAwesome::decorativeIcon('save') ?>
75 75
 				<?= /* I18N: A button label. */
76
-				I18N::translate('save') ?>
76
+                I18N::translate('save') ?>
77 77
 			</button>
78 78
 			<a class="btn btn-secondary" href="<?= e($family->url()) ?>">
79 79
 				<?= FontAwesome::decorativeIcon('cancel') ?>
80 80
 				<?= /* I18N: A button label. */
81
-				I18N::translate('cancel') ?>
81
+                I18N::translate('cancel') ?>
82 82
 			</a>
83 83
 		</div>
84 84
 	</div>
Please login to merge, or discard this patch.