@@ -247,7 +247,7 @@ |
||
247 | 247 | /** |
248 | 248 | * Which months follows this one? Calendars with leap-months should provide their own implementation. |
249 | 249 | * |
250 | - * @return int[] |
|
250 | + * @return integer[] |
|
251 | 251 | */ |
252 | 252 | protected function nextMonth() { |
253 | 253 | if ($this->m == 6 && !$this->isLeapYear()) { |
@@ -842,7 +842,7 @@ |
||
842 | 842 | /** |
843 | 843 | * Which months follows this one? Calendars with leap-months should provide their own implementation. |
844 | 844 | * |
845 | - * @return int[] |
|
845 | + * @return integer[] |
|
846 | 846 | */ |
847 | 847 | protected function nextMonth() { |
848 | 848 | return [$this->m === $this->calendar->monthsInYear() ? $this->nextYear($this->y) : $this->y, ($this->m % $this->calendar->monthsInYear()) + 1]; |
@@ -381,7 +381,8 @@ discard block |
||
381 | 381 | <a href="<?= $individual->getHtmlUrl() ?>#tab-stories"> |
382 | 382 | <?= $individual->getFullName() ?> |
383 | 383 | </a> |
384 | - <?php else: ?> |
|
384 | + <?php else { |
|
385 | + : ?> |
|
385 | 386 | <?= $story->xref ?> |
386 | 387 | <?php endif ?> |
387 | 388 | </td> |
@@ -410,6 +411,7 @@ discard block |
||
410 | 411 | */ |
411 | 412 | private function showList() { |
412 | 413 | global $controller, $WT_TREE; |
414 | +} |
|
413 | 415 | |
414 | 416 | $controller = new PageController; |
415 | 417 | $controller |
@@ -16,8 +16,8 @@ |
||
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_Preferences; |
@@ -106,7 +106,7 @@ |
||
106 | 106 | if (!empty($menu->getSubmenus())) { |
107 | 107 | // Insert a dummy menu / label into the submenu |
108 | 108 | $submenus = $menu->getSubmenus(); |
109 | - array_unshift($submenus, new Menu($menu->getLabel(), null, null, [ 'onclick' => 'return false;'])); |
|
109 | + array_unshift($submenus, new Menu($menu->getLabel(), null, null, ['onclick' => 'return false;'])); |
|
110 | 110 | $menu->setSubmenus($submenus); |
111 | 111 | } |
112 | 112 |
@@ -1120,24 +1120,24 @@ |
||
1120 | 1120 | if ($latlongval[$i] == $latlongval[$k]) { |
1121 | 1121 | $dups++; |
1122 | 1122 | switch ($dups) { |
1123 | - case 1: |
|
1124 | - $marker_number = $curgen . 'L'; |
|
1125 | - break; |
|
1126 | - case 2: |
|
1127 | - $marker_number = $curgen . 'R'; |
|
1128 | - break; |
|
1129 | - case 3: |
|
1130 | - $marker_number = $curgen . 'Ls'; |
|
1131 | - break; |
|
1132 | - case 4: |
|
1133 | - $marker_number = $curgen . 'Rs'; |
|
1134 | - break; |
|
1135 | - case 5: //adjust position where markers have same coodinates |
|
1136 | - default: |
|
1137 | - $marker_number = $curgen; |
|
1138 | - $lon[$i] += 0.0025; |
|
1139 | - $lat[$i] += 0.0025; |
|
1140 | - break; |
|
1123 | + case 1: |
|
1124 | + $marker_number = $curgen . 'L'; |
|
1125 | + break; |
|
1126 | + case 2: |
|
1127 | + $marker_number = $curgen . 'R'; |
|
1128 | + break; |
|
1129 | + case 3: |
|
1130 | + $marker_number = $curgen . 'Ls'; |
|
1131 | + break; |
|
1132 | + case 4: |
|
1133 | + $marker_number = $curgen . 'Rs'; |
|
1134 | + break; |
|
1135 | + case 5: //adjust position where markers have same coodinates |
|
1136 | + default: |
|
1137 | + $marker_number = $curgen; |
|
1138 | + $lon[$i] += 0.0025; |
|
1139 | + $lat[$i] += 0.0025; |
|
1140 | + break; |
|
1141 | 1141 | } |
1142 | 1142 | } |
1143 | 1143 | } |
@@ -2235,7 +2235,7 @@ discard block |
||
2235 | 2235 | 'place_id' => $place_id, |
2236 | 2236 | ]); |
2237 | 2237 | } catch (\Exception $ex) { |
2238 | - FlashMessages::addMessage(I18N::translate('Location not removed: this location contains sub-locations'),'danger'); |
|
2238 | + FlashMessages::addMessage(I18N::translate('Location not removed: this location contains sub-locations'), 'danger'); |
|
2239 | 2239 | } |
2240 | 2240 | |
2241 | 2241 | header('Location: module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $parent_id . '&inactive=' . $inactive); |
@@ -2582,7 +2582,7 @@ discard block |
||
2582 | 2582 | [0 => I18N::translate('Geographic data')] + |
2583 | 2583 | $this->placeIdToHierarchy($place_id === 0 ? $parent_id : $place_id); |
2584 | 2584 | foreach ($hierarchy as $id => $name) { |
2585 | - $breadcrumbs += ['module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $id .'&inactive=' . $inactive => Filter::escapeHtml($name)]; |
|
2585 | + $breadcrumbs += ['module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $id . '&inactive=' . $inactive => Filter::escapeHtml($name)]; |
|
2586 | 2586 | } |
2587 | 2587 | echo Bootstrap4::breadcrumbs($breadcrumbs, $place_id === 0 ? I18N::translate('Add') : I18N::translate('Edit')); |
2588 | 2588 | |
@@ -3088,7 +3088,7 @@ discard block |
||
3088 | 3088 | [0 => I18N::translate('Geographic data')] + |
3089 | 3089 | $this->placeIdToHierarchy($parent_id); |
3090 | 3090 | foreach (array_slice($hierarchy, 0, -1, true) as $id => $name) { |
3091 | - $breadcrumbs += ['module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $id .'&inactive=' . $inactive => Filter::escapeHtml($name)]; |
|
3091 | + $breadcrumbs += ['module.php?mod=googlemap&mod_action=admin_places&parent_id=' . $id . '&inactive=' . $inactive => Filter::escapeHtml($name)]; |
|
3092 | 3092 | } |
3093 | 3093 | echo Bootstrap4::breadcrumbs($breadcrumbs, end($hierarchy)); |
3094 | 3094 | |
@@ -3280,7 +3280,7 @@ discard block |
||
3280 | 3280 | <?php endif ?> |
3281 | 3281 | </td> |
3282 | 3282 | <td> |
3283 | - <?= FontAwesome::linkIcon('edit', I18N::translate('Edit'), ['href' => 'module.php?mod=googlemap&mod_action=admin_place_edit&action=update&place_id=' . $place['place_id'] . '&parent_id=' . $place['parent_id'], 'class' => 'btn btn-primary']) ?> |
|
3283 | + <?= FontAwesome::linkIcon('edit', I18N::translate('Edit'), ['href' => 'module.php?mod=googlemap&mod_action=admin_place_edit&action=update&place_id=' . $place['place_id'] . '&parent_id=' . $place['parent_id'], 'class' => 'btn btn-primary']) ?> |
|
3284 | 3284 | </td> |
3285 | 3285 | <td> |
3286 | 3286 | <?php if ($noRows == 0): ?> |
@@ -3289,7 +3289,7 @@ discard block |
||
3289 | 3289 | <input type="hidden" name="place_id" value="<?= $place['place_id'] ?>"> |
3290 | 3290 | <input type="hidden" name="inactive" value="<?= $inactive ?>"> |
3291 | 3291 | <button type="submit" class="btn btn-danger"> |
3292 | - <?= FontAwesome::semanticIcon('delete', I18N::translate('Delete')) ?> |
|
3292 | + <?= FontAwesome::semanticIcon('delete', I18N::translate('Delete')) ?> |
|
3293 | 3293 | </button> |
3294 | 3294 | </form> |
3295 | 3295 | <?php else: ?> |
@@ -85,8 +85,7 @@ discard block |
||
85 | 85 | // Create the underlying PDO object |
86 | 86 | self::$pdo = new PDO( |
87 | 87 | (substr($DBHOST, 0, 1) === '/' ? |
88 | - "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : |
|
89 | - "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
88 | + "mysql:unix_socket={$DBHOST};dbname={$DBNAME}" : "mysql:host={$DBHOST};dbname={$DBNAME};port={$DBPORT}" |
|
90 | 89 | ), |
91 | 90 | $DBUSER, $DBPASS, |
92 | 91 | [ |
@@ -161,7 +160,7 @@ discard block |
||
161 | 160 | } |
162 | 161 | } |
163 | 162 | $milliseconds = sprintf('%.3f', $microseconds * 1000); |
164 | - self::$log[] = '<tr><td>' .$stack . '</td><td>' . $query . '</td><td>' . $rows . '</td><td>' . $milliseconds . '</td></tr>'; |
|
163 | + self::$log[] = '<tr><td>' . $stack . '</td><td>' . $query . '</td><td>' . $rows . '</td><td>' . $milliseconds . '</td></tr>'; |
|
165 | 164 | } |
166 | 165 | |
167 | 166 | /** |
@@ -77,11 +77,11 @@ |
||
77 | 77 | $menu->addSubmenu(new Menu(I18N::translate('Change family members'), 'edit_interface.php?action=changefamily&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref(), 'menu-fam-change')); |
78 | 78 | |
79 | 79 | // edit_fam / add child |
80 | - $menu->addSubmenu(new Menu(I18N::translate('Add a child to this family'), 'edit_interface.php?action=add_child_to_family&ged=' . $this->record->getTree()->getNameHtml() .'&xref=' . $this->record->getXref() . '&gender=U', 'menu-fam-addchil')); |
|
80 | + $menu->addSubmenu(new Menu(I18N::translate('Add a child to this family'), 'edit_interface.php?action=add_child_to_family&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref() . '&gender=U', 'menu-fam-addchil')); |
|
81 | 81 | |
82 | 82 | // edit_fam / reorder_children |
83 | 83 | if ($this->record->getNumberOfChildren() > 1) { |
84 | - $menu->addSubmenu(new Menu(I18N::translate('Re-order children'), 'edit_interface.php?action=reorder_children&ged=' . $this->record->getTree()->getNameHtml() .'&xref=' . $this->record->getXref(), 'menu-fam-orderchil')); |
|
84 | + $menu->addSubmenu(new Menu(I18N::translate('Re-order children'), 'edit_interface.php?action=reorder_children&ged=' . $this->record->getTree()->getNameHtml() . '&xref=' . $this->record->getXref(), 'menu-fam-orderchil')); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | // delete |
@@ -1080,7 +1080,7 @@ discard block |
||
1080 | 1080 | "SELECT CONCAT(l_to, '@', l_file), COUNT(*) FROM `##sources` JOIN `##link` ON l_from = s_id AND l_file = s_file AND l_type = 'NOTE' GROUP BY l_to, l_file" |
1081 | 1081 | )->fetchAssoc(); |
1082 | 1082 | |
1083 | - $html = ''; |
|
1083 | + $html = ''; |
|
1084 | 1084 | $html .= '<table ' . Datatables::noteTableAttributes() . '><thead><tr>'; |
1085 | 1085 | $html .= '<th>' . I18N::translate('Title') . '</th>'; |
1086 | 1086 | $html .= '<th>' . I18N::translate('Individuals') . '</th>'; |
@@ -1146,7 +1146,7 @@ discard block |
||
1146 | 1146 | )->fetchAssoc(); |
1147 | 1147 | |
1148 | 1148 | $html = ''; |
1149 | - $html .= '<table ' . Datatables::repositoryTableAttributes() . '><thead><tr>'; $html .= '<th>' . I18N::translate('Repository name') . '</th>'; |
|
1149 | + $html .= '<table ' . Datatables::repositoryTableAttributes() . '><thead><tr>'; $html .= '<th>' . I18N::translate('Repository name') . '</th>'; |
|
1150 | 1150 | $html .= '<th>' . I18N::translate('Sources') . '</th>'; |
1151 | 1151 | $html .= '<th>' . I18N::translate('Last change') . '</th>'; |
1152 | 1152 | $html .= '<th>' . I18N::translate('Delete') . '</th>'; |
@@ -1573,7 +1573,7 @@ discard block |
||
1573 | 1573 | if ($endjd === $startjd) { |
1574 | 1574 | $html .= I18N::translate('No events exist for tomorrow.'); |
1575 | 1575 | } else { |
1576 | - $html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
1576 | + $html .= /* I18N: translation for %s==1 is unused; it is translated separately as “tomorrow” */ I18N::plural('No events exist for the next %s day.', 'No events exist for the next %s days.', $endjd - $startjd + 1, I18N::number($endjd - $startjd + 1)); |
|
1577 | 1577 | } |
1578 | 1578 | } else { |
1579 | 1579 | if ($endjd === $startjd) { |