| @@ -109,7 +109,7 @@ | ||
| 109 | 109 | </option> | 
| 110 | 110 | </select> | 
| 111 | 111 | </td> | 
| 112 | - <?php else: ?> | |
| 112 | + <?php else : ?> | |
| 113 | 113 | <td class="descriptionbox wrap"></td> | 
| 114 | 114 | <td class="optionbox wrap"></td> | 
| 115 | 115 | <?php endif ?> | 
| @@ -148,7 +148,7 @@ | ||
| 148 | 148 |  	public static function createEditLinks($gedrec, GedcomRecord $record) { | 
| 149 | 149 | return preg_replace( | 
| 150 | 150 | "/@([^#@\n]+)@/m", | 
| 151 | - '<a href="edit_interface.php?action=editraw&ged=' . $record->getTree()->getNameHtml() . '&xref=' . $record->getXref() .'">@\\1@</a>', | |
| 151 | + '<a href="edit_interface.php?action=editraw&ged=' . $record->getTree()->getNameHtml() . '&xref=' . $record->getXref() . '">@\\1@</a>', | |
| 152 | 152 | $gedrec | 
| 153 | 153 | ); | 
| 154 | 154 | } | 
| @@ -89,7 +89,7 @@ | ||
| 89 | 89 |  if (Auth::isAdmin()) { | 
| 90 | 90 | $user = User::findByGenealogyRecord($controller->record); | 
| 91 | 91 |  	if ($user) { | 
| 92 | - $user_link = ' — <a href="admin_users.php?filter=' . Filter::escapeHtml($user->getUserName()) . '">' . Filter::escapeHtml($user->getUserName()) . '</a>'; | |
| 92 | + $user_link = ' — <a href="admin_users.php?filter=' . Filter::escapeHtml($user->getUserName()) . '">' . Filter::escapeHtml($user->getUserName()) . '</a>'; | |
| 93 | 93 | }; | 
| 94 | 94 | } | 
| 95 | 95 | |
| @@ -146,7 +146,7 @@ | ||
| 146 | 146 | } | 
| 147 | 147 | } | 
| 148 | 148 | } | 
| 149 | -	if ($user_id < 0 || $gedcom_id < 0 ) { | |
| 149 | +	if ($user_id < 0 || $gedcom_id < 0) { | |
| 150 | 150 |  		header('Location: ' . WT_BASE_URL . 'admin.php'); | 
| 151 | 151 |  	} elseif ($user_id > 0) { | 
| 152 | 152 |  		header('Location: ' . WT_BASE_URL . 'index.php?ctype=user&ged=' . $WT_TREE->getNameUrl()); | 
| @@ -1470,7 +1470,7 @@ | ||
| 1470 | 1470 |  					'0' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'first'), | 
| 1471 | 1471 |  					'1' => I18N::translateContext('Show the [first/last] [N] parts of a place name.', 'last'), | 
| 1472 | 1472 |  				], $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES_SUFFIX', ['name' => 'SHOW_PEDIGREE_PLACES_SUFFIX'])), | 
| 1473 | -				Bootstrap4::select(FunctionsEdit::numericOptions(range(1,9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES'), ['name' => 'SHOW_PEDIGREE_PLACES']) | |
| 1473 | +				Bootstrap4::select(FunctionsEdit::numericOptions(range(1, 9)), $WT_TREE->getPreference('SHOW_PEDIGREE_PLACES'), ['name' => 'SHOW_PEDIGREE_PLACES']) | |
| 1474 | 1474 | ) ?> | 
| 1475 | 1475 | <p class="small text-muted"> | 
| 1476 | 1476 |  				<?= /* I18N: Help text for the “Abbreviate place names” configuration setting */ I18N::translate('Place names are frequently too long to fit on charts, lists, etc. They can be abbreviated by showing just the first few parts of the name, such as <i>village, county</i>, or the last few part of it, such as <i>region, country</i>.') ?> | 
| @@ -189,7 +189,7 @@ | ||
| 189 | 189 | <div class="modal-content"> | 
| 190 | 190 | <div class="modal-header"> | 
| 191 | 191 | <h3 class="modal-title" id="wt-modal-title">' . $title . '</h3> | 
| 192 | -			        <button type="button" class="close" data-dismiss="modal" aria-label="'. I18N::translate('close') .'"> | |
| 192 | +			        <button type="button" class="close" data-dismiss="modal" aria-label="'. I18N::translate('close') . '"> | |
| 193 | 193 | <span aria-hidden="true">×</span> | 
| 194 | 194 | </button> | 
| 195 | 195 | </div> | 
| @@ -127,7 +127,7 @@ | ||
| 127 | 127 |  					$message->subject = I18N::translate('RE: ') . $message->subject; | 
| 128 | 128 | } | 
| 129 | 129 |  				if ($user) { | 
| 130 | -					$content .= '<a class="btn btn-secondary" href="message.php?to=' . Filter::escapeUrl($message->sender) . '&subject=' . Filter::escapeUrl($message->subject) . '&ged=' . $WT_TREE->getNameUrl() .'" title="' . I18N::translate('Reply') .'">' . I18N::translate('Reply') . '</a> '; | |
| 130 | +					$content .= '<a class="btn btn-secondary" href="message.php?to=' . Filter::escapeUrl($message->sender) . '&subject=' . Filter::escapeUrl($message->subject) . '&ged=' . $WT_TREE->getNameUrl() . '" title="' . I18N::translate('Reply') . '">' . I18N::translate('Reply') . '</a> '; | |
| 131 | 131 | } | 
| 132 | 132 |  				$content .= '<button type="button" onclick="if (confirm(\'' . I18N::translate('Are you sure you want to delete this message? It cannot be retrieved later.') . '\')) {$(\'#messageform :checkbox\').prop(\'checked\', false); $(\'#cb_message' . $message->message_id . '\').prop(\'checked\', true); document.messageform.submit();}">' . I18N::translate('Delete') . '</button></div></td></tr>'; | 
| 133 | 133 | } | 
| @@ -100,7 +100,7 @@ discard block | ||
| 100 | 100 | $controller->restrictAccess(!in_array($to, ['all', 'never_logged', 'last_6mo']) || Auth::isAdmin()); | 
| 101 | 101 | $controller->pageHeader(); | 
| 102 | 102 | |
| 103 | -$to_names = implode(I18N::$list_separator, array_map(function(User $user) { return $user->getRealName(); }, recipients($to))); | |
| 103 | +$to_names = implode(I18N::$list_separator, array_map(function (User $user) { return $user->getRealName(); }, recipients($to))); | |
| 104 | 104 | |
| 105 | 105 | ?> | 
| 106 | 106 |  <h2><?= I18N::translate('Send a message') ?></h2> | 
| @@ -185,13 +185,13 @@ discard block | ||
| 185 | 185 | */ | 
| 186 | 186 |  function recipients($to) { | 
| 187 | 187 |  	if ($to === 'all') { | 
| 188 | - $recipients = User::all(); | |
| 188 | + $recipients = User::all(); | |
| 189 | 189 |  	} elseif ($to === 'last_6mo') { | 
| 190 | -		$recipients = array_filter(User::all(), function(User $user) { | |
| 190 | +		$recipients = array_filter(User::all(), function (User $user) { | |
| 191 | 191 |  			return $user->getPreference('sessiontime') > 0 && WT_TIMESTAMP - $user->getPreference('sessiontime') > 60 * 60 * 24 * 30 * 6; | 
| 192 | 192 | }); | 
| 193 | 193 |  	} elseif ($to === 'never_logged') { | 
| 194 | -		$recipients = array_filter(User::all(), function(User $user) { | |
| 194 | +		$recipients = array_filter(User::all(), function (User $user) { | |
| 195 | 195 |  			return $user->getPreference('verified_by_admin') && $user->getPreference('reg_timestamp') > $user->getPreference('sessiontime'); | 
| 196 | 196 | }); | 
| 197 | 197 |  	} else { | 
| @@ -95,7 +95,7 @@ discard block | ||
| 95 | 95 |  	public function getTabs() { | 
| 96 | 96 | $active_tabs = Module::getActiveTabs($this->record->getTree()); | 
| 97 | 97 | |
| 98 | -		return array_filter($active_tabs, function(ModuleTabInterface $tab) { return $tab->hasTabContent(); }); | |
| 98 | +		return array_filter($active_tabs, function (ModuleTabInterface $tab) { return $tab->hasTabContent(); }); | |
| 99 | 99 | } | 
| 100 | 100 | |
| 101 | 101 | /** | 
| @@ -143,7 +143,7 @@ discard block | ||
| 143 | 143 | |
| 144 | 144 |  		if ($n === 0) { | 
| 145 | 145 | $content_class = 'collapse show'; | 
| 146 | - $aria = 'true'; | |
| 146 | + $aria = 'true'; | |
| 147 | 147 | |
| 148 | 148 | // Display gender icon | 
| 149 | 149 |  			foreach ($individual->getFacts('SEX') as $sex_fact) { | 
| @@ -162,7 +162,7 @@ discard block | ||
| 162 | 162 | echo '<dd class="field">', $dummy->getFullName(); | 
| 163 | 163 |  		if ($this->record->canEdit() && !$name_fact->isPendingDeletion()) { | 
| 164 | 164 |  			echo "<div class=\"deletelink\"><a class=\"deleteicon\" href=\"#\" onclick=\"return delete_fact('" . I18N::translate('Are you sure you want to delete this fact?') . "', '" . $this->record->getXref() . "', '" . $name_fact->getFactId() . "');\" title=\"" . I18N::translate('Delete this name') . '"><span class="link_text">' . I18N::translate('Delete this name') . '</span></a></div>'; | 
| 165 | -			echo '<div class="editlink"><a href="edit_interface.php?action=editname&xref=' . $this->record->getXref() . '&fact_id=' . $name_fact->getFactId() . '&ged=' . $this->record->getTree()->getNameHtml() .  '" class="editicon" title="' . I18N::translate('Edit the name') . '"><span class="link_text">' . I18N::translate('Edit the name') . '</span></a></div>'; | |
| 165 | +			echo '<div class="editlink"><a href="edit_interface.php?action=editname&xref=' . $this->record->getXref() . '&fact_id=' . $name_fact->getFactId() . '&ged=' . $this->record->getTree()->getNameHtml() . '" class="editicon" title="' . I18N::translate('Edit the name') . '"><span class="link_text">' . I18N::translate('Edit the name') . '</span></a></div>'; | |
| 166 | 166 | } | 
| 167 | 167 | echo '</dd>'; | 
| 168 | 168 |  		$ct = preg_match_all('/\n2 (\w+) (.*)/', $name_fact->getGedcom(), $nmatch, PREG_SET_ORDER); |