summaryrefslogtreecommitdiff
path: root/app/Report/ReportPdfCell.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-10-09 16:57:52 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-10-09 16:57:52 +0100
commitc21bdddc89b941099aac7bad64af11da73acab4e (patch)
tree96c9e03c6e2445fb719c34f679e87b812ad2c220 /app/Report/ReportPdfCell.php
parente24444eeefe1caed93aa11866313e0407b4ce028 (diff)
downloadwebtrees-c21bdddc89b941099aac7bad64af11da73acab4e.tar.gz
webtrees-c21bdddc89b941099aac7bad64af11da73acab4e.tar.bz2
webtrees-c21bdddc89b941099aac7bad64af11da73acab4e.zip
More type hints for reports
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 737327aedb..b55f1d0562 100644
--- a/app/Report/ReportPdfCell.php
+++ b/app/Report/ReportPdfCell.php
@@ -84,7 +84,7 @@ class ReportPdfCell extends ReportBaseCell
}
// If current position (left)
- if ($this->left == '.') {
+ if ($this->left === ReportBaseElement::CURRENT_POSITION) {
$cX = $renderer->GetX();
} else {
// For static position add margin (also updates X)
@@ -96,7 +96,7 @@ class ReportPdfCell extends ReportBaseCell
$this->width = $renderer->getRemainingWidthPDF();
}
// For current position
- if ($this->top == '.') {
+ if ($this->top === ReportBaseElement::CURRENT_POSITION) {
$this->top = $renderer->GetY();
} else {
$renderer->SetY($this->top);