@@ -87,7 +87,7 @@ |
||
| 87 | 87 | /** |
| 88 | 88 | * Get the record to which this fact links |
| 89 | 89 | * |
| 90 | - * @return Individual|Family|Source|Repository|Media|Note|null |
|
| 90 | + * @return GedcomRecord|null |
|
| 91 | 91 | */ |
| 92 | 92 | public function getTarget() { |
| 93 | 93 | $xref = trim($this->getValue(), '@'); |
@@ -152,7 +152,7 @@ discard block |
||
| 152 | 152 | * |
| 153 | 153 | * @param Tree $tree |
| 154 | 154 | * |
| 155 | - * @return ModuleBlockInterface[] |
|
| 155 | + * @return AbstractModule[] |
|
| 156 | 156 | */ |
| 157 | 157 | public static function getActiveBlocks(Tree $tree) { |
| 158 | 158 | return self::getActiveModulesByComponent($tree, 'block'); |
@@ -163,7 +163,7 @@ discard block |
||
| 163 | 163 | * |
| 164 | 164 | * @param Tree $tree |
| 165 | 165 | * |
| 166 | - * @return ModuleChartInterface[] |
|
| 166 | + * @return AbstractModule[] |
|
| 167 | 167 | */ |
| 168 | 168 | public static function getActiveCharts(Tree $tree) { |
| 169 | 169 | return self::getActiveModulesByComponent($tree, 'chart'); |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | * |
| 175 | 175 | * @param Tree $tree |
| 176 | 176 | * |
| 177 | - * @return ModuleMenuInterface[] |
|
| 177 | + * @return AbstractModule[] |
|
| 178 | 178 | */ |
| 179 | 179 | public static function getActiveMenus(Tree $tree) { |
| 180 | 180 | return self::getActiveModulesByComponent($tree, 'menu'); |
@@ -185,7 +185,7 @@ discard block |
||
| 185 | 185 | * |
| 186 | 186 | * @param Tree $tree |
| 187 | 187 | * |
| 188 | - * @return ModuleReportInterface[] |
|
| 188 | + * @return AbstractModule[] |
|
| 189 | 189 | */ |
| 190 | 190 | public static function getActiveReports(Tree $tree) { |
| 191 | 191 | return self::getActiveModulesByComponent($tree, 'report'); |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | * |
| 197 | 197 | * @param Tree $tree |
| 198 | 198 | * |
| 199 | - * @return ModuleSidebarInterface[] |
|
| 199 | + * @return AbstractModule[] |
|
| 200 | 200 | */ |
| 201 | 201 | public static function getActiveSidebars(Tree $tree) { |
| 202 | 202 | return self::getActiveModulesByComponent($tree, 'sidebar'); |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | * |
| 208 | 208 | * @param Tree $tree |
| 209 | 209 | * |
| 210 | - * @return ModuleTabInterface[] |
|
| 210 | + * @return AbstractModule[] |
|
| 211 | 211 | */ |
| 212 | 212 | public static function getActiveTabs(Tree $tree) { |
| 213 | 213 | return self::getActiveModulesByComponent($tree, 'tab'); |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | * |
| 219 | 219 | * @param Tree $tree |
| 220 | 220 | * |
| 221 | - * @return ModuleThemeInterface[] |
|
| 221 | + * @return AbstractModule[] |
|
| 222 | 222 | */ |
| 223 | 223 | public static function getActiveThemes(Tree $tree) { |
| 224 | 224 | return self::getActiveModulesByComponent($tree, 'theme'); |
@@ -268,7 +268,7 @@ discard block |
||
| 268 | 268 | * |
| 269 | 269 | * @param string $xref |
| 270 | 270 | * |
| 271 | - * @return string|null |
|
| 271 | + * @return integer|null |
|
| 272 | 272 | */ |
| 273 | 273 | private function findNextXref($xref) { |
| 274 | 274 | foreach (array_keys($this->all_xrefs) as $key) { |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | * |
| 289 | 289 | * @param string $xref |
| 290 | 290 | * |
| 291 | - * @return string|null |
|
| 291 | + * @return integer|null |
|
| 292 | 292 | */ |
| 293 | 293 | private function findPrevXref($xref) { |
| 294 | 294 | foreach (array_reverse(array_keys($this->all_xrefs)) as $key) { |
@@ -463,7 +463,7 @@ |
||
| 463 | 463 | * |
| 464 | 464 | * @param string $s Style name |
| 465 | 465 | * |
| 466 | - * @return array |
|
| 466 | + * @return string |
|
| 467 | 467 | */ |
| 468 | 468 | public function getStyle($s) { |
| 469 | 469 | if (!isset($this->Styles[$s])) { |
@@ -127,7 +127,7 @@ discard block |
||
| 127 | 127 | * @param int $stretch Stretch carachter mode |
| 128 | 128 | * @param string $bocolor Border color |
| 129 | 129 | * @param string $tcolor Text color |
| 130 | - * @param $reseth |
|
| 130 | + * @param boolean $reseth |
|
| 131 | 131 | */ |
| 132 | 132 | public function __construct( |
| 133 | 133 | $width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | * |
| 158 | 158 | * @param $renderer |
| 159 | 159 | * |
| 160 | - * @return float |
|
| 160 | + * @return integer |
|
| 161 | 161 | */ |
| 162 | 162 | public function getHeight($renderer) { |
| 163 | 163 | return $this->height; |
@@ -181,7 +181,7 @@ discard block |
||
| 181 | 181 | * |
| 182 | 182 | * @param $renderer |
| 183 | 183 | * |
| 184 | - * @return float |
|
| 184 | + * @return integer |
|
| 185 | 185 | */ |
| 186 | 186 | public function getWidth($renderer) { |
| 187 | 187 | return $this->width; |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | * @param string $tcolor Text color |
| 309 | 309 | * @param bool $reseth |
| 310 | 310 | * |
| 311 | - * @return object ReportHtmlCell |
|
| 311 | + * @return ReportHtmlCell ReportHtmlCell |
|
| 312 | 312 | */ |
| 313 | 313 | public function createCell($width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth) { |
| 314 | 314 | return new ReportHtmlCell($width, $height, $border, $align, $bgcolor, $style, $ln, $top, $left, $fill, $stretch, $bocolor, $tcolor, $reseth); |
@@ -466,7 +466,7 @@ discard block |
||
| 466 | 466 | /** |
| 467 | 467 | * Add a page header. |
| 468 | 468 | * |
| 469 | - * @param $element |
|
| 469 | + * @param ReportBaseElement $element |
|
| 470 | 470 | * |
| 471 | 471 | * @return int |
| 472 | 472 | */ |
@@ -479,7 +479,7 @@ discard block |
||
| 479 | 479 | /** |
| 480 | 480 | * Checks the Footnote and numbers them - ReportHtml |
| 481 | 481 | * |
| 482 | - * @param object $footnote |
|
| 482 | + * @param ReportBaseFootnote $footnote |
|
| 483 | 483 | * |
| 484 | 484 | * @return bool false if not numbered before | object if already numbered |
| 485 | 485 | */ |
@@ -553,7 +553,7 @@ discard block |
||
| 553 | 553 | /** |
| 554 | 554 | * Get the current footnotes height. |
| 555 | 555 | * |
| 556 | - * @param $cellWidth |
|
| 556 | + * @param double $cellWidth |
|
| 557 | 557 | * |
| 558 | 558 | * @return int |
| 559 | 559 | */ |
@@ -600,9 +600,9 @@ discard block |
||
| 600 | 600 | /** |
| 601 | 601 | * Get a text height in points - ReportHtml |
| 602 | 602 | * |
| 603 | - * @param $str |
|
| 603 | + * @param string $str |
|
| 604 | 604 | * |
| 605 | - * @return int |
|
| 605 | + * @return double |
|
| 606 | 606 | */ |
| 607 | 607 | public function getTextCellHeight($str) { |
| 608 | 608 | // Count the number of lines to calculate the height |
@@ -641,7 +641,7 @@ discard block |
||
| 641 | 641 | /** |
| 642 | 642 | * Set the current style. |
| 643 | 643 | * |
| 644 | - * @param $s |
|
| 644 | + * @param string $s |
|
| 645 | 645 | */ |
| 646 | 646 | public function setCurrentStyle($s) { |
| 647 | 647 | $this->currentStyle = $s; |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * @param ReportHtml $html |
| 60 | 60 | * @param int $cellWidth The width of the cell to use it for text wraping |
| 61 | 61 | * |
| 62 | - * @return int Footnote height in points |
|
| 62 | + * @return double Footnote height in points |
|
| 63 | 63 | */ |
| 64 | 64 | public function getFootnoteHeight($html, $cellWidth = 0) { |
| 65 | 65 | if ($html->getCurrentStyle() != $this->styleName) { |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | * |
| 60 | 60 | * @param ReportTcpdf $renderer |
| 61 | 61 | * |
| 62 | - * @return float $h |
|
| 62 | + * @return integer $h |
|
| 63 | 63 | */ |
| 64 | 64 | public function getFootnoteHeight($renderer) { |
| 65 | 65 | return 0; |
@@ -70,7 +70,7 @@ |
||
| 70 | 70 | * |
| 71 | 71 | * @param ReportTcpdf $pdf |
| 72 | 72 | * |
| 73 | - * @return float 0 |
|
| 73 | + * @return integer 0 |
|
| 74 | 74 | */ |
| 75 | 75 | public function getHeight($pdf) { |
| 76 | 76 | return 0; |