@@ -141,7 +141,7 @@ discard block |
||
| 141 | 141 | /** |
| 142 | 142 | * Add an element to the Page Header -PDF |
| 143 | 143 | * |
| 144 | - * @param object|string $element |
|
| 144 | + * @param ReportBaseElement $element |
|
| 145 | 145 | * |
| 146 | 146 | * @return int The number of the Page Header elements |
| 147 | 147 | */ |
@@ -232,7 +232,7 @@ discard block |
||
| 232 | 232 | /** |
| 233 | 233 | * Set the report. |
| 234 | 234 | * |
| 235 | - * @param $r |
|
| 235 | + * @param ReportPdf $r |
|
| 236 | 236 | */ |
| 237 | 237 | public function setReport($r) { |
| 238 | 238 | $this->wt_report = $r; |
@@ -340,7 +340,7 @@ discard block |
||
| 340 | 340 | /** |
| 341 | 341 | * Checks the Footnote and numbers them |
| 342 | 342 | * |
| 343 | - * @param object $footnote |
|
| 343 | + * @param ReportBaseFootnote $footnote |
|
| 344 | 344 | * |
| 345 | 345 | * @return bool false if not numbered befor | object if already numbered |
| 346 | 346 | */ |
@@ -21,6 +21,7 @@ |
||
| 21 | 21 | interface MigrationInterface { |
| 22 | 22 | /** |
| 23 | 23 | * Upgrade to to the next version |
| 24 | + * @return void |
|
| 24 | 25 | */ |
| 25 | 26 | public function upgrade(); |
| 26 | 27 | } |
@@ -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)); |
@@ -102,6 +102,7 @@ discard block |
||
| 102 | 102 | /** |
| 103 | 103 | * Allow themes to do things after initialization (since they cannot use |
| 104 | 104 | * the constructor). |
| 105 | + * @return void |
|
| 105 | 106 | */ |
| 106 | 107 | public function hookAfterInit(); |
| 107 | 108 | |
@@ -193,6 +194,7 @@ discard block |
||
| 193 | 194 | * happens in a theme file, and we need to be able to change it. |
| 194 | 195 | * |
| 195 | 196 | * @param Tree|null $tree The current tree (if there is one). |
| 197 | + * @return void |
|
| 196 | 198 | */ |
| 197 | 199 | public function init(Tree $tree = null); |
| 198 | 200 | |
@@ -214,6 +216,7 @@ discard block |
||
| 214 | 216 | |
| 215 | 217 | /** |
| 216 | 218 | * Send any HTTP headers. |
| 219 | + * @return void |
|
| 217 | 220 | */ |
| 218 | 221 | public function sendHeaders(); |
| 219 | 222 | |
@@ -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 | */ |
@@ -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( |