@@ -5362,7 +5362,7 @@ |
||
| 5362 | 5362 | /** |
| 5363 | 5363 | * Find common surnames. |
| 5364 | 5364 | * |
| 5365 | - * @return string |
|
| 5365 | + * @return integer|null |
|
| 5366 | 5366 | */ |
| 5367 | 5367 | public function getCommonSurname() { |
| 5368 | 5368 | $surnames = array_keys(FunctionsDb::getTopSurnames($this->tree->getTreeId(), 1, 1)); |
@@ -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 |
@@ -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 | */ |
@@ -176,7 +176,7 @@ |
||
| 176 | 176 | /** |
| 177 | 177 | * Format an individual. |
| 178 | 178 | * |
| 179 | - * @param $person |
|
| 179 | + * @param Individual|null $person |
|
| 180 | 180 | * @param bool $showUnknown |
| 181 | 181 | * |
| 182 | 182 | * @return string |
@@ -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]; |
@@ -334,7 +334,7 @@ |
||
| 334 | 334 | * @param string|null $regexp |
| 335 | 335 | * @param string $default |
| 336 | 336 | * |
| 337 | - * @return string[]|string[][] |
|
| 337 | + * @return string[] |
|
| 338 | 338 | */ |
| 339 | 339 | public static function postArray($variable, $regexp = null, $default = '') { |
| 340 | 340 | return self::inputArray(INPUT_POST, $variable, $regexp, $default); |
@@ -286,7 +286,7 @@ |
||
| 286 | 286 | * @param string $ca_title |
| 287 | 287 | * @param string $ca_place |
| 288 | 288 | * @param string $ca_citation |
| 289 | - * @param string[][] $ca_individuals |
|
| 289 | + * @param string[] $ca_individuals |
|
| 290 | 290 | * @param string $ca_notes |
| 291 | 291 | * |
| 292 | 292 | * @return string |
@@ -106,7 +106,7 @@ |
||
| 106 | 106 | * |
| 107 | 107 | * @param int $fetch_style |
| 108 | 108 | * |
| 109 | - * @return stdClass|array|false |
|
| 109 | + * @return Tree |
|
| 110 | 110 | */ |
| 111 | 111 | public function fetch($fetch_style = PDO::FETCH_OBJ) { |
| 112 | 112 | if (!$this->executed) { |