summaryrefslogtreecommitdiff
path: root/app/Report/ReportPdfCell.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-09-09 22:15:46 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-09-14 16:02:08 +0100
commit77bab46164e79833b0e2cc2442328cb5f47dd5e6 (patch)
treece2aa539e03a7904dfb81555a4448f711b829b00 /app/Report/ReportPdfCell.php
parenta3148b03cff68ac7a179d4636354b8e1c00044ca (diff)
downloadwebtrees-77bab46164e79833b0e2cc2442328cb5f47dd5e6.tar.gz
webtrees-77bab46164e79833b0e2cc2442328cb5f47dd5e6.tar.bz2
webtrees-77bab46164e79833b0e2cc2442328cb5f47dd5e6.zip
Reports PHPdoc
Diffstat (limited to 'app/Report/ReportPdfCell.php')
-rw-r--r--app/Report/ReportPdfCell.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Report/ReportPdfCell.php b/app/Report/ReportPdfCell.php
index 7b2385778c..67330b9ddd 100644
--- a/app/Report/ReportPdfCell.php
+++ b/app/Report/ReportPdfCell.php
@@ -38,7 +38,7 @@ class ReportPdfCell extends ReportBaseCell
*
* @return void
*/
- public function render($renderer)
+ public function render($renderer): void
{
$temptext = str_replace('#PAGENUM#', (string) $renderer->tcpdf->PageNo(), $this->text);
// underline «title» part of Source item
@@ -101,7 +101,7 @@ class ReportPdfCell extends ReportBaseCell
}
// Check the width if set to page wide OR set by xml to larger then page wide
- if ($this->width == 0 || $this->width > $renderer->getRemainingWidthPDF()) {
+ if ($this->width === 0.0 || $this->width > $renderer->getRemainingWidthPDF()) {
$this->width = $renderer->getRemainingWidthPDF();
}
// For current position