@@ -35,8 +35,8 @@ |
||
35 | 35 | $surn = str_replace('@N.N.', 'AAAA', $surn); |
36 | 36 | |
37 | 37 | return array( |
38 | - $surn . 'AAAA' . $givn, |
|
39 | - $givn . 'AAAA' . $surn, |
|
38 | + $surn.'AAAA'.$givn, |
|
39 | + $givn.'AAAA'.$surn, |
|
40 | 40 | ); |
41 | 41 | } |
42 | 42 |
@@ -39,13 +39,13 @@ discard block |
||
39 | 39 | <input type="hidden" name="ged" value="<?= $this->data->get('url_ged') ?>"> |
40 | 40 | <select name="city"> |
41 | 41 | <?php foreach ($cities as $city) { ?> |
42 | - <option value="<?= Functions::encryptToSafeBase64($city) ?>" <?php if(trim($city) == trim($selected_city)) echo 'selected="selected"'?> ><?= $city ?></option> |
|
42 | + <option value="<?= Functions::encryptToSafeBase64($city) ?>" <?php if (trim($city) == trim($selected_city)) echo 'selected="selected"'?> ><?= $city ?></option> |
|
43 | 43 | <?php } ?> |
44 | 44 | </select> |
45 | 45 | <input type="submit" value="<?= I18N::translate('Show') ?>" /> |
46 | 46 | </form> |
47 | 47 | |
48 | - <?php if($this->data->get('has_list', false)) { ?> |
|
48 | + <?php if ($this->data->get('has_list', false)) { ?> |
|
49 | 49 | <div class="loading-image"> </div> |
50 | 50 | <div class="certificate-list"> |
51 | 51 | <table id="<?= $this->data->get('table_id') ?>"> |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | ?> |
63 | 63 | <tr> |
64 | 64 | <!-- Certificate date --> |
65 | - <?php if($date = $certificate->getCertificateDate()) { ?> |
|
65 | + <?php if ($date = $certificate->getCertificateDate()) { ?> |
|
66 | 66 | <td data-sort="<?= $date->julianDay() ?>"><?= $date->display() ?></td> |
67 | 67 | <?php } else { ?> |
68 | 68 | <td data-sort="0"> </td> |
@@ -73,8 +73,8 @@ discard block |
||
73 | 73 | <?php |
74 | 74 | $name = $certificate->getCertificateDetails() ?: ''; |
75 | 75 | $sortname = ""; |
76 | - $ct_names=preg_match("/([A-Z]{2,})/", $name, $match); |
|
77 | - if($ct_names > 0) $sortname = $match[1].'_'; |
|
76 | + $ct_names = preg_match("/([A-Z]{2,})/", $name, $match); |
|
77 | + if ($ct_names > 0) $sortname = $match[1].'_'; |
|
78 | 78 | $sortname .= $name; |
79 | 79 | ?> |
80 | 80 | <td data-sort="<?= Filter::escapeHtml($sortname) ?>"> |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | */ |
35 | 35 | protected function renderContent() { |
36 | 36 | |
37 | - if($this->data->get('has_sosa', false)) { |
|
37 | + if ($this->data->get('has_sosa', false)) { |
|
38 | 38 | $table_id = $this->data->get('table_id'); |
39 | 39 | ?> |
40 | 40 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | class="ui-state-default" |
53 | 53 | title="<?php echo I18N::translate('Show individuals who are alive or couples where both partners are alive.'); ?>" |
54 | 54 | > |
55 | - <?php echo I18N::translate('Both alive');?> |
|
55 | + <?php echo I18N::translate('Both alive'); ?> |
|
56 | 56 | </button> |
57 | 57 | <button |
58 | 58 | type="button" |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | class="ui-state-default" |
62 | 62 | title="<?php echo I18N::translate('Show couples where only the female partner is deceased.'); ?>" |
63 | 63 | > |
64 | - <?php echo I18N::translate('Widower');?> |
|
64 | + <?php echo I18N::translate('Widower'); ?> |
|
65 | 65 | </button> |
66 | 66 | <button |
67 | 67 | type="button" |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | </thead> |
176 | 176 | <tbody> |
177 | 177 | |
178 | - <?php foreach($this->data->get('sosa_list') as $sosa => $family) { |
|
178 | + <?php foreach ($this->data->get('sosa_list') as $sosa => $family) { |
|
179 | 179 | /** @var \Fisharebest\Webtrees\Family $person */ |
180 | 180 | |
181 | 181 | //PERSO Create decorator for Family |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | } |
193 | 193 | $dwife = new \MyArtJaub\Webtrees\Individual($wife); |
194 | 194 | |
195 | - $mdate=$family->getMarriageDate(); |
|
195 | + $mdate = $family->getMarriageDate(); |
|
196 | 196 | |
197 | 197 | if ($family->isPendingAddtion()) { |
198 | 198 | $class = ' class="new"'; |
@@ -208,17 +208,17 @@ discard block |
||
208 | 208 | <?php list($surn_givn, $givn_surn) = FunctionsPrintLists::sortableNames($husb); ?> |
209 | 209 | <td colspan="2" data-sort="<?= Filter::escapeHtml($givn_surn) ?>"> |
210 | 210 | <?php foreach ($husb->getAllNames() as $num=>$name) { |
211 | - if ($name['type']=='NAME') { |
|
212 | - $title=''; |
|
211 | + if ($name['type'] == 'NAME') { |
|
212 | + $title = ''; |
|
213 | 213 | } else { |
214 | - $title='title="'.strip_tags(GedcomTag::getLabel($name['type'], $husb)).'"'; |
|
214 | + $title = 'title="'.strip_tags(GedcomTag::getLabel($name['type'], $husb)).'"'; |
|
215 | 215 | } |
216 | - if ($num==$husb->getPrimaryName()) { |
|
217 | - $class=' class="name2"'; |
|
218 | - $sex_image=$husb->getSexImage(); |
|
216 | + if ($num == $husb->getPrimaryName()) { |
|
217 | + $class = ' class="name2"'; |
|
218 | + $sex_image = $husb->getSexImage(); |
|
219 | 219 | } else { |
220 | - $class=''; |
|
221 | - $sex_image=''; |
|
220 | + $class = ''; |
|
221 | + $sex_image = ''; |
|
222 | 222 | } ?> |
223 | 223 | <a <?php echo $title.' '.$class; ?> href="<?php echo $husb->getHtmlUrl(); ?>"> |
224 | 224 | <?php echo \Fisharebest\Webtrees\Functions\FunctionsPrint::highlightSearchHits($name['full']); ?> |
@@ -230,23 +230,23 @@ discard block |
||
230 | 230 | ?> |
231 | 231 | </td> |
232 | 232 | <td hidden data-sort="<?= Filter::escapeHtml($surn_givn) ?>"></td> |
233 | - <?php $hdate=$husb->getBirthDate(); ?> |
|
233 | + <?php $hdate = $husb->getBirthDate(); ?> |
|
234 | 234 | <td class="center" data-sort="<?= Date::getAge($hdate, $mdate, 1) ?>"><?= Date::getAge($hdate, $mdate, 2) ?></td> |
235 | 235 | <!-- WIFE --> |
236 | 236 | <?php list($surn_givn, $givn_surn) = FunctionsPrintLists::sortableNames($wife); ?> |
237 | 237 | <td colspan="2"> |
238 | 238 | <?php foreach ($wife->getAllNames() as $num=>$name) { |
239 | - if ($name['type']=='NAME') { |
|
240 | - $title=''; |
|
239 | + if ($name['type'] == 'NAME') { |
|
240 | + $title = ''; |
|
241 | 241 | } else { |
242 | - $title='title="'.strip_tags(GedcomTag::getLabel($name['type'], $wife)).'"'; |
|
242 | + $title = 'title="'.strip_tags(GedcomTag::getLabel($name['type'], $wife)).'"'; |
|
243 | 243 | } |
244 | - if ($num==$wife->getPrimaryName()) { |
|
245 | - $class=' class="name2"'; |
|
246 | - $sex_image=$wife->getSexImage(); |
|
244 | + if ($num == $wife->getPrimaryName()) { |
|
245 | + $class = ' class="name2"'; |
|
246 | + $sex_image = $wife->getSexImage(); |
|
247 | 247 | } else { |
248 | - $class=''; |
|
249 | - $sex_image=''; |
|
248 | + $class = ''; |
|
249 | + $sex_image = ''; |
|
250 | 250 | } ?> |
251 | 251 | <a <?= $title.' '.$class ?> href="<?= $wife->getHtmlUrl() ?>"> |
252 | 252 | <?= \Fisharebest\Webtrees\Functions\FunctionsPrint::highlightSearchHits($name['full']) ?> |
@@ -258,7 +258,7 @@ discard block |
||
258 | 258 | ?> |
259 | 259 | </td> |
260 | 260 | <td hidden data-sort="<?= Filter::escapeHtml($surn_givn) ?>"></td> |
261 | - <?php $wdate=$wife->getBirthDate(); ?> |
|
261 | + <?php $wdate = $wife->getBirthDate(); ?> |
|
262 | 262 | <td class="center" data-sort="<?= Date::getAge($wdate, $mdate, 1) ?>"><?= Date::getAge($wdate, $mdate, 2) ?></td> |
263 | 263 | <td data-sort="<?= $mdate->julianDay() ?>"><?php |
264 | 264 | if ($marriage_dates = $family->getAllMarriageDates()) { |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | protected function renderContent() { |
35 | 35 | |
36 | - if($this->data->get('has_sosa', false)) { |
|
36 | + if ($this->data->get('has_sosa', false)) { |
|
37 | 37 | $table_id = $this->data->get('table_id'); |
38 | 38 | ?> |
39 | 39 | |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | </thead> |
177 | 177 | <tbody> |
178 | 178 | |
179 | - <?php foreach($this->data->get('sosa_list') as $sosa => $person) { |
|
179 | + <?php foreach ($this->data->get('sosa_list') as $sosa => $person) { |
|
180 | 180 | /** @var \Fisharebest\Webtrees\Individual $person */ |
181 | 181 | if ($person->isPendingAddtion()) { |
182 | 182 | $class = ' class="new"'; |
@@ -193,17 +193,17 @@ discard block |
||
193 | 193 | <?php list($surn_givn, $givn_surn) = FunctionsPrintLists::sortableNames($person); ?> |
194 | 194 | <td colspan="2" data-sort="<?= Filter::escapeHtml($givn_surn) ?>"> |
195 | 195 | <?php foreach ($person->getAllNames() as $num=>$name) { |
196 | - if ($name['type']=='NAME') { |
|
197 | - $title=''; |
|
196 | + if ($name['type'] == 'NAME') { |
|
197 | + $title = ''; |
|
198 | 198 | } else { |
199 | - $title='title="'.strip_tags(GedcomTag::getLabel($name['type'], $person)).'"'; |
|
199 | + $title = 'title="'.strip_tags(GedcomTag::getLabel($name['type'], $person)).'"'; |
|
200 | 200 | } |
201 | - if ($num==$person->getPrimaryName()) { |
|
202 | - $class=' class="name2"'; |
|
203 | - $sex_image=$person->getSexImage(); |
|
201 | + if ($num == $person->getPrimaryName()) { |
|
202 | + $class = ' class="name2"'; |
|
203 | + $sex_image = $person->getSexImage(); |
|
204 | 204 | } else { |
205 | - $class=''; |
|
206 | - $sex_image=''; |
|
205 | + $class = ''; |
|
206 | + $sex_image = ''; |
|
207 | 207 | } ?> |
208 | 208 | <a <?= $title.' '.$class; ?> href="<?= $person->getHtmlUrl() ?>"> |
209 | 209 | <?= \Fisharebest\Webtrees\Functions\FunctionsPrint::highlightSearchHits($name['full']) ?> |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | <?php } ?> |
263 | 263 | </td> |
264 | 264 | <?php if (ModuleManager::getInstance()->isOperational(Constants::MODULE_MAJ_ISSOURCED_NAME)) { |
265 | - if($person->isDead()) { |
|
265 | + if ($person->isDead()) { |
|
266 | 266 | $isDSourced = $dperson->isDeathSourced(); ?> |
267 | 267 | <td data-sort=<?= $isDSourced ?>><?= FunctionsPrint::formatIsSourcedIcon('E', $isDSourced, 'DEAT', 1, 'medium') ?></td> |
268 | 268 | <?php } else { ?> |
@@ -309,10 +309,10 @@ discard block |
||
309 | 309 | <?= I18N::translate('Number of Sosa ancestors: %1$s known / %2$s theoretical (%3$s)', |
310 | 310 | I18N::number($this->data->get('sosa_count')), |
311 | 311 | I18N::number($this->data->get('sosa_theo')), |
312 | - I18N::percentage($this->data->get('sosa_ratio'),2) |
|
312 | + I18N::percentage($this->data->get('sosa_ratio'), 2) |
|
313 | 313 | ) ?> |
314 | - <?php if($this->data->get('sosa_hidden') > 0) { |
|
315 | - echo '['. I18N::translate('%s hidden', I18N::number($this->data->get('sosa_hidden'))).']'; |
|
314 | + <?php if ($this->data->get('sosa_hidden') > 0) { |
|
315 | + echo '['.I18N::translate('%s hidden', I18N::number($this->data->get('sosa_hidden'))).']'; |
|
316 | 316 | } ?> |
317 | 317 | </div> |
318 | 318 | </th> |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | <button type="button" class="ui-state-default btn-toggle-parents"> |
325 | 325 | <?= I18N::translate('Show parents') ?> |
326 | 326 | </button> |
327 | - <button id="btn-toggle-statistics-<?php echo $table_id ;?>" type="button" class="ui-state-default btn-toggle-statistics"> |
|
327 | + <button id="btn-toggle-statistics-<?php echo $table_id; ?>" type="button" class="ui-state-default btn-toggle-statistics"> |
|
328 | 328 | <?= I18N::translate('Show statistics charts') ?> |
329 | 329 | </button> |
330 | 330 | </div> |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | <div id="maj-sosa-missing-page" class="center"> |
36 | 36 | <h2><?= $this->data->get('title') ?></h2> |
37 | 37 | |
38 | - <?php if($this->data->get('is_setup')) { |
|
38 | + <?php if ($this->data->get('is_setup')) { |
|
39 | 39 | $this->renderSosaHeader(); |
40 | - if($this->data->get('has_missing', false)) { |
|
40 | + if ($this->data->get('has_missing', false)) { |
|
41 | 41 | $table_id = $this->data->get('table_id'); |
42 | 42 | ?> |
43 | 43 | <div id="sosa-indi-missing" class="smissing-list"> |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | </thead> |
103 | 103 | <tbody> |
104 | 104 | |
105 | - <?php foreach($this->data->get('missing_list') as $missing_tab) { |
|
105 | + <?php foreach ($this->data->get('missing_list') as $missing_tab) { |
|
106 | 106 | $person = $missing_tab['indi']; |
107 | 107 | |
108 | 108 | /** @var \Fisharebest\Webtrees\Individual $person */ |
@@ -121,17 +121,17 @@ discard block |
||
121 | 121 | <td class="transparent"><?= $person->getXref() ?></td> |
122 | 122 | <td colspan="2" data-sort="<?= Filter::escapeHtml($givn_surn) ?>"> |
123 | 123 | <?php foreach ($person->getAllNames() as $num=>$name) { |
124 | - if ($name['type']=='NAME') { |
|
125 | - $title=''; |
|
124 | + if ($name['type'] == 'NAME') { |
|
125 | + $title = ''; |
|
126 | 126 | } else { |
127 | - $title='title="'.strip_tags(GedcomTag::getLabel($name['type'], $person)).'"'; |
|
127 | + $title = 'title="'.strip_tags(GedcomTag::getLabel($name['type'], $person)).'"'; |
|
128 | 128 | } |
129 | - if ($num==$person->getPrimaryName()) { |
|
130 | - $class=' class="name2"'; |
|
131 | - $sex_image=$person->getSexImage(); |
|
129 | + if ($num == $person->getPrimaryName()) { |
|
130 | + $class = ' class="name2"'; |
|
131 | + $sex_image = $person->getSexImage(); |
|
132 | 132 | } else { |
133 | - $class=''; |
|
134 | - $sex_image=''; |
|
133 | + $class = ''; |
|
134 | + $sex_image = ''; |
|
135 | 135 | } ?> |
136 | 136 | <a <?= $title.' '.$class ?> href="<?= $person->getHtmlUrl() ?>"> |
137 | 137 | <?= \Fisharebest\Webtrees\Functions\FunctionsPrint::highlightSearchHits($name['full']) ?> |
@@ -184,9 +184,9 @@ discard block |
||
184 | 184 | <td class="ui-state-default" colspan="11"> |
185 | 185 | <div class="center"> |
186 | 186 | <?= I18N::translate('Number of different missing ancestors: %s', I18N::number($this->data->get('missing_diff_count'))) ?> |
187 | - <?php if($this->data->get('missing_hidden') > 0) echo ' ['. I18N::translate('%s hidden', I18N::number($this->data->get('missing_hidden'))).']'; ?> |
|
188 | - <?= ' - ' . I18N::translate('Generation complete at %s', I18N::percentage($this->data->get('perc_sosa'), 2)) ?> |
|
189 | - <?= ' [' . I18N::translate('Potential %s', I18N::percentage($this->data->get('perc_sosa_potential'),2)).']' ?> |
|
187 | + <?php if ($this->data->get('missing_hidden') > 0) echo ' ['.I18N::translate('%s hidden', I18N::number($this->data->get('missing_hidden'))).']'; ?> |
|
188 | + <?= ' - '.I18N::translate('Generation complete at %s', I18N::percentage($this->data->get('perc_sosa'), 2)) ?> |
|
189 | + <?= ' ['.I18N::translate('Potential %s', I18N::percentage($this->data->get('perc_sosa_potential'), 2)).']' ?> |
|
190 | 190 | </div> |
191 | 191 | </td> |
192 | 192 | </tr> |