@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | * @param int $min The number of times a surname must occur before it is added to the array |
648 | 648 | * @param Tree $tree |
649 | 649 | * |
650 | - * @return int[] |
|
650 | + * @return string[] |
|
651 | 651 | */ |
652 | 652 | public static function getCommonSurnames($min, Tree $tree) { |
653 | 653 | return self::getTopSurnames($tree->getTreeId(), $min, 0); |
@@ -660,7 +660,7 @@ discard block |
||
660 | 660 | * @param int $min only fetch surnames occuring this many times |
661 | 661 | * @param int $max only fetch this number of surnames (0=all) |
662 | 662 | * |
663 | - * @return int[] |
|
663 | + * @return string[] |
|
664 | 664 | */ |
665 | 665 | public static function getTopSurnames($ged_id, $min, $max) { |
666 | 666 | // Use n_surn, rather than n_surname, as it is used to generate URLs for |
@@ -2743,7 +2743,7 @@ |
||
2743 | 2743 | $tags = explode(':', $tag); |
2744 | 2744 | $origlevel = $level; |
2745 | 2745 | if ($level == 0) { |
2746 | - $level = $gedrec{0} + 1; |
|
2746 | + $level = $gedrec{0} +1; |
|
2747 | 2747 | } |
2748 | 2748 | |
2749 | 2749 | $subrec = $gedrec; |
@@ -57,14 +57,14 @@ |
||
57 | 57 | 'MADRI', 'MANAU', 'MANHA', 'MANIL', 'MANTI', 'MEDFO', 'MELBO', 'MEMPH', |
58 | 58 | 'MERID', 'MEXIC', 'MNTVD', 'MONTE', 'MONTI', 'MONTR', 'MTIMP', 'NASHV', |
59 | 59 | 'NAUV2', 'NAUVO', 'NBEAC', 'NUKUA', 'NYORK', 'NZEAL', 'OAKLA', 'OAXAC', |
60 | - 'OGDEN', 'OKLAH', 'OQUIR', 'ORLAN', 'PALEG', 'PALMY', 'PANAM', 'PAPEE', |
|
61 | - 'PAYSO', 'PERTH', 'PHOEN', 'POFFI', 'PORTL', 'PREST', 'PROCC', 'PROVO', |
|
60 | + 'OGDEN', 'OKLAH', 'OQUIR', 'ORLAN', 'PALEG', 'PALMY', 'PANAM', 'PAPEE', |
|
61 | + 'PAYSO', 'PERTH', 'PHOEN', 'POFFI', 'PORTL', 'PREST', 'PROCC', 'PROVO', |
|
62 | 62 | 'QUETZ', 'RALEI', 'RECIF', 'REDLA', 'REGIN', 'RENO', 'REXBU', 'SACRA', |
63 | - 'SAMOA', 'SANTI', 'SANSA', 'SANTO', 'SDIEG', 'SDOMI', 'SEATT', 'SEOUL', |
|
64 | - 'SGEOR', 'SJOSE', 'SLAKE', 'SLOUI', 'SNOWF','SPAUL', 'SPMIN', 'SPOKA', |
|
63 | + 'SAMOA', 'SANTI', 'SANSA', 'SANTO', 'SDIEG', 'SDOMI', 'SEATT', 'SEOUL', |
|
64 | + 'SGEOR', 'SJOSE', 'SLAKE', 'SLOUI', 'SNOWF', 'SPAUL', 'SPMIN', 'SPOKA', |
|
65 | 65 | 'STOCK', 'SUVA', 'SWISS', 'SYDNE', 'TAIPE', 'TAMPI', 'TEGUC', 'TGUTI', |
66 | - 'TIHUA', 'TOKYO', 'TORNO', 'TRUJI', 'TWINF', 'VANCO', 'VERAC', 'VERNA', |
|
67 | - 'VILLA', 'WASHI', 'WINTE', |
|
66 | + 'TIHUA', 'TOKYO', 'TORNO', 'TRUJI', 'TWINF', 'VANCO', 'VERAC', 'VERNA', |
|
67 | + 'VILLA', 'WASHI', 'WINTE', |
|
68 | 68 | ); |
69 | 69 | } |
70 | 70 |
@@ -139,8 +139,11 @@ discard block |
||
139 | 139 | <div class="font9"> |
140 | 140 | <?php echo $spouse->getLifeSpan(); ?> |
141 | 141 | </div> |
142 | - <?php else: ?> |
|
143 | - <?php echo $spouse->getFullName(); ?> |
|
142 | + <?php else { |
|
143 | + : ?> |
|
144 | + <?php echo $spouse->getFullName(); |
|
145 | +} |
|
146 | +?> |
|
144 | 147 | <?php endif; ?> |
145 | 148 | </td> |
146 | 149 | </tr> |
@@ -164,8 +167,11 @@ discard block |
||
164 | 167 | <div class="font9"> |
165 | 168 | <?php echo $child->getLifeSpan(); ?> |
166 | 169 | </div> |
167 | - <?php else: ?> |
|
168 | - <?php echo $child->getFullName(); ?> |
|
170 | + <?php else { |
|
171 | + : ?> |
|
172 | + <?php echo $child->getFullName(); |
|
173 | +} |
|
174 | +?> |
|
169 | 175 | <?php endif; ?> |
170 | 176 | </td> |
171 | 177 | </tr> |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | /** |
102 | 102 | * Get the male (or first female) partner of the family |
103 | 103 | * |
104 | - * @param $access_level int|null |
|
104 | + * @param integer $access_level int|null |
|
105 | 105 | * |
106 | 106 | * @return Individual|null |
107 | 107 | */ |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | /** |
119 | 119 | * Get the female (or second male) partner of the family |
120 | 120 | * |
121 | - * @param $access_level int|null |
|
121 | + * @param integer $access_level int|null |
|
122 | 122 | * |
123 | 123 | * @return Individual|null |
124 | 124 | */ |
@@ -343,7 +343,7 @@ discard block |
||
343 | 343 | // Check the script used by each name, so we can match cyrillic with cyrillic, greek with greek, etc. |
344 | 344 | $husb_names = array(); |
345 | 345 | if ($this->husb) { |
346 | - $husb_names = array_filter($this->husb->getAllNames(), function(array $x) { return $x['type'] !== '_MARNM'; } ); |
|
346 | + $husb_names = array_filter($this->husb->getAllNames(), function (array $x) { return $x['type'] !== '_MARNM'; } ); |
|
347 | 347 | } |
348 | 348 | // If the individual only has married names, create a dummy birth name. |
349 | 349 | if (empty($husb_names)) { |
@@ -359,7 +359,7 @@ discard block |
||
359 | 359 | |
360 | 360 | $wife_names = array(); |
361 | 361 | if ($this->wife) { |
362 | - $wife_names = array_filter($this->wife->getAllNames(), function(array $x) { return $x['type'] !== '_MARNM'; } ); |
|
362 | + $wife_names = array_filter($this->wife->getAllNames(), function (array $x) { return $x['type'] !== '_MARNM'; } ); |
|
363 | 363 | } |
364 | 364 | // If the individual only has married names, create a dummy birth name. |
365 | 365 | if (empty($wife_names)) { |
@@ -388,7 +388,7 @@ |
||
388 | 388 | * (b) Level 1 object with the Highlight option missing or set to other than "Y" or "N" |
389 | 389 | * (c) Level 2 or higher object with the Highlight option set to "Y" |
390 | 390 | * |
391 | - * @return null|Media |
|
391 | + * @return GedcomRecord|null |
|
392 | 392 | */ |
393 | 393 | public function findHighlightedMedia() { |
394 | 394 | $objectA = null; |
@@ -142,7 +142,7 @@ |
||
142 | 142 | * |
143 | 143 | * @param int $fetch_style |
144 | 144 | * |
145 | - * @return \stdClass|array|null |
|
145 | + * @return \stdClass |
|
146 | 146 | */ |
147 | 147 | public function fetchOneRow($fetch_style = PDO::FETCH_OBJ) { |
148 | 148 | if (!$this->executed) { |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | * @param string $xref2 |
160 | 160 | * @param int $tree_id |
161 | 161 | * |
162 | - * @return array |
|
162 | + * @return string[] |
|
163 | 163 | */ |
164 | 164 | private function allAncestors($xref1, $xref2, $tree_id) { |
165 | 165 | $ancestors = array($xref1, $xref2); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | * @param string $xref2 |
199 | 199 | * @param int $tree_id |
200 | 200 | * |
201 | - * @return array |
|
201 | + * @return string[] |
|
202 | 202 | */ |
203 | 203 | private function excludeFamilies($xref1, $xref2, $tree_id) { |
204 | 204 | return Database::prepare( |
@@ -44,7 +44,7 @@ |
||
44 | 44 | $form_pass2 = Filter::post('form_pass2', WT_REGEX_PASSWORD); |
45 | 45 | $form_email = Filter::postEmail('form_email'); |
46 | 46 | $form_rootid = Filter::post('form_rootid', WT_REGEX_XREF); |
47 | -$form_theme = Filter::post('form_theme', implode('|', array_keys(Theme::themeNames())), '');; |
|
47 | +$form_theme = Filter::post('form_theme', implode('|', array_keys(Theme::themeNames())), ''); ; |
|
48 | 48 | $form_language = Filter::post('form_language'); |
49 | 49 | $form_timezone = Filter::post('form_timezone'); |
50 | 50 | $form_contact_method = Filter::post('form_contact_method'); |
@@ -183,8 +183,11 @@ |
||
183 | 183 | <div class="value"> |
184 | 184 | <?php if ($my_individual_record): ?> |
185 | 185 | <?php echo $my_individual_record->formatList('span'); ?> |
186 | - <?php else: ?> |
|
187 | - <?php echo I18N::translateContext('unknown people', 'Unknown'); ?> |
|
186 | + <?php else { |
|
187 | + : ?> |
|
188 | + <?php echo I18N::translateContext('unknown people', 'Unknown'); |
|
189 | +} |
|
190 | +?> |
|
188 | 191 | <?php endif; ?> |
189 | 192 | <p class="small text-muted"> |
190 | 193 | <?php echo I18N::translate('This is a link to your own record in the family tree. If this is the wrong individual, contact an administrator.'); ?> |