Completed
Push — develop ( 612ef4...932e3c )
by Greg
11:36
created
app/Mail.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
 namespace Fisharebest\Webtrees;
17 17
 
18 18
 use Exception;
19
-use Swift_Mailer;
20 19
 use Swift_MailTransport;
20
+use Swift_Mailer;
21 21
 use Swift_Message;
22 22
 use Swift_NullTransport;
23 23
 use Swift_SmtpTransport;
Please login to merge, or discard this patch.
descendancy.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Fisharebest\Webtrees\Database;
20 20
 use Fisharebest\Webtrees\Filter;
21 21
 use Fisharebest\Webtrees\Functions\FunctionsDate;
22
-use Fisharebest\Webtrees\Functions\FunctionsPrint;
23 22
 use Fisharebest\Webtrees\I18N;
24 23
 use Fisharebest\Webtrees\Theme;
25 24
 
Please login to merge, or discard this patch.
fanchart.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Fisharebest\Webtrees\Database;
20 20
 use Fisharebest\Webtrees\Filter;
21 21
 use Fisharebest\Webtrees\Functions\FunctionsDate;
22
-use Fisharebest\Webtrees\Functions\FunctionsPrint;
23 22
 use Fisharebest\Webtrees\I18N;
24 23
 use Fisharebest\Webtrees\Theme;
25 24
 
Please login to merge, or discard this patch.
lifespan.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,6 @@
 block discarded – undo
19 19
 use Fisharebest\Webtrees\Database;
20 20
 use Fisharebest\Webtrees\Filter;
21 21
 use Fisharebest\Webtrees\Functions\FunctionsDate;
22
-use Fisharebest\Webtrees\Functions\FunctionsPrint;
23 22
 use Fisharebest\Webtrees\I18N;
24 23
 use Fisharebest\Webtrees\Theme;
25 24
 
Please login to merge, or discard this patch.
medialist.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,8 @@  discard block
 block discarded – undo
109 109
 						</option>
110 110
 					</select>
111 111
 				</td>
112
-				<?php else: ?>
112
+				<?php else {
113
+	: ?>
113 114
 					<td class="descriptionbox wrap"></td>
114 115
 					<td class="optionbox wrap"></td>
115 116
 				<?php endif ?>
@@ -133,6 +134,7 @@  discard block
 block discarded – undo
133 134
 						<?php
134 135
 						foreach (['10', '20', '30', '40', '50', '75', '100', '125', '150', '200'] as $selectEntry) {
135 136
 							echo '<option value="', $selectEntry, '" ';
137
+}
136 138
 							if ($selectEntry == $max) {
137 139
 								echo 'selected';
138 140
 							}
Please login to merge, or discard this patch.
admin_trees_config.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -519,7 +519,8 @@  discard block
 block discarded – undo
519 519
 					<div class="bg-danger text-danger">
520 520
 						<?= $resn->xref ?> — <?= I18N::translate('this record does not exist') ?>
521 521
 					</div>
522
-					<?php else: ?>
522
+					<?php else {
523
+	: ?>
523 524
 					<div class="text-muted">
524 525
 						<?= I18N::translate('All records') ?>
525 526
 					</div>
@@ -638,6 +639,7 @@  discard block
 block discarded – undo
638 639
 				<span class="input-group-addon">
639 640
 					<?php
640 641
 					$person = Individual::getInstance($WT_TREE->getPreference('PEDIGREE_ROOT_ID'), $WT_TREE);
642
+}
641 643
 					if ($person) {
642 644
 						echo $person->getFullName(), ' ', $person->getLifeSpan();
643 645
 					} else {
Please login to merge, or discard this patch.
search_advanced.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,8 @@  discard block
 block discarded – undo
154 154
 				<input type="text" id="value<?= $i ?>" name="values[<?= $i ?>]" value="<?= Filter::escapeHtml($controller->getValue($i)) ?>"<?= substr($controller->getField($i), -4) == 'PLAC' ? 'data-autocomplete-type="PLAC"' : '' ?>>
155 155
 			<?php if (preg_match('/^NAME:/', $currentFieldSearch) > 0) { ?>
156 156
 				<select name="fields[<?= $i ?>]">
157
-					<option value="<?= $currentField ?>:EXACT" <?php if (preg_match('/:EXACT$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Exact') ?></option>
157
+					<option value="<?= $currentField ?>:EXACT" <?php if (preg_match('/:EXACT$/', $currentFieldSearch) > 0) {
158
+	echo 'selected' ?>><?= I18N::translate('Exact') ?></option>
158 159
 					<option value="<?= $currentField ?>:BEGINS" <?php if (preg_match('/:BEGINS$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Begins with') ?></option>
159 160
 					<option value="<?= $currentField ?>:CONTAINS" <?php if (preg_match('/:CONTAINS$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Contains') ?></option>
160 161
 					<option value="<?= $currentField ?>:SDX" <?php if (preg_match('/:SDX$/', $currentFieldSearch) > 0) echo 'selected' ?>><?= I18N::translate('Sounds like') ?></option>
@@ -176,6 +177,7 @@  discard block
 block discarded – undo
176 177
 		//-- relative fields
177 178
 		if ($i == 0 && $fct > 4) {
178 179
 			$j = $fct;
180
+}
179 181
 			// Get the current options for Father’s and Mother’s name searches
180 182
 			$fatherGivnOption = 'SDX';
181 183
 			$fatherSurnOption = 'SDX';
Please login to merge, or discard this patch.
app/Module/StoriesModule.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -388,7 +388,8 @@  discard block
 block discarded – undo
388 388
 						<a href="<?= $individual->getHtmlUrl() ?>#stories">
389 389
 							<?= $individual->getFullName() ?>
390 390
 						</a>
391
-						<?php else: ?>
391
+						<?php else {
392
+	: ?>
392 393
 							<?= $story->xref ?>
393 394
 						<?php endif ?>
394 395
 						</td>
@@ -417,6 +418,7 @@  discard block
 block discarded – undo
417 418
 	 */
418 419
 	private function showList() {
419 420
 		global $controller, $WT_TREE;
421
+}
420 422
 
421 423
 		$controller = new PageController;
422 424
 		$controller
Please login to merge, or discard this patch.
app/Module/FamilyNavigatorModule.php 1 patch
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -139,7 +139,8 @@  discard block
 block discarded – undo
139 139
 					<div class="font9">
140 140
 						<?= $spouse->getLifeSpan() ?>
141 141
 					</div>
142
-					<?php else: ?>
142
+					<?php else {
143
+	: ?>
143 144
 						<?= $spouse->getFullName() ?>
144 145
 					<?php endif ?>
145 146
 				</td>
@@ -149,6 +150,7 @@  discard block
 block discarded – undo
149 150
 
150 151
 		foreach ($family->getChildren() as $child) {
151 152
 			$menu = new Menu(Functions::getCloseRelationshipName($controller->record, $child));
153
+}
152 154
 			$menu->addClass('', 'submenu flyout');
153 155
 			$menu->addSubmenu(new Menu($this->getFamily($child)));
154 156
 			?>
@@ -164,7 +166,8 @@  discard block
 block discarded – undo
164 166
 					<div class="font9">
165 167
 						<?= $child->getLifeSpan() ?>
166 168
 					</div>
167
-					<?php else: ?>
169
+					<?php else {
170
+	: ?>
168 171
 						<?= $child->getFullName() ?>
169 172
 					<?php endif ?>
170 173
 				</td>
@@ -184,6 +187,7 @@  discard block
 block discarded – undo
184 187
 	private function getHTML($person, $showUnknown = false) {
185 188
 		if ($person instanceof Individual) {
186 189
 			return sprintf(self::LNK, $person->getHtmlUrl(), $person->getFullName());
190
+}
187 191
 		} elseif ($showUnknown) {
188 192
 			return sprintf(self::MSG, I18N::translate('unknown'));
189 193
 		} else {
Please login to merge, or discard this patch.