@@ -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(), '@'); |
@@ -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) { |
@@ -235,7 +235,8 @@ discard block |
||
| 235 | 235 | <?php // Reset - otherwise we might "undo all changes", which refreshes the ?> |
| 236 | 236 | <?php // page, which makes them all again! ?> |
| 237 | 237 | <script>reset_reload();</script> |
| 238 | - <?php else: ?> |
|
| 238 | + <?php else { |
|
| 239 | + : ?> |
|
| 239 | 240 | <hr> |
| 240 | 241 | <div id="batch_update2" class="col-sm-12"> |
| 241 | 242 | <?php if ($this->curr_xref): ?> |
@@ -273,6 +274,7 @@ discard block |
||
| 273 | 274 | foreach (array_keys($this->all_xrefs) as $key) { |
| 274 | 275 | if ($key > $xref) { |
| 275 | 276 | $record = self::getLatestRecord($key, $this->all_xrefs[$key]); |
| 277 | +} |
|
| 276 | 278 | if ($this->PLUGIN->doesRecordNeedUpdate($key, $record)) { |
| 277 | 279 | return $key; |
| 278 | 280 | } |
@@ -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; |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use Fisharebest\Webtrees\Controller\PageController; |
| 19 | 19 | use Fisharebest\Webtrees\Functions\FunctionsRtl; |
| 20 | 20 | use Fisharebest\Webtrees\I18N; |
| 21 | -use Fisharebest\Webtrees\Media; |
|
| 22 | 21 | use Fisharebest\Webtrees\MediaFile; |
| 23 | 22 | |
| 24 | 23 | /** |
@@ -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; |
@@ -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 | */ |