summaryrefslogtreecommitdiff
path: root/app/Report/ReportHtmlLine.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/ReportHtmlLine.php
parente24444eeefe1caed93aa11866313e0407b4ce028 (diff)
downloadwebtrees-c21bdddc89b941099aac7bad64af11da73acab4e.tar.gz
webtrees-c21bdddc89b941099aac7bad64af11da73acab4e.tar.bz2
webtrees-c21bdddc89b941099aac7bad64af11da73acab4e.zip
More type hints for reports
Diffstat (limited to 'app/Report/ReportHtmlLine.php')
-rw-r--r--app/Report/ReportHtmlLine.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Report/ReportHtmlLine.php b/app/Report/ReportHtmlLine.php
index edc9245c4e..40500389a6 100644
--- a/app/Report/ReportHtmlLine.php
+++ b/app/Report/ReportHtmlLine.php
@@ -31,16 +31,16 @@ class ReportHtmlLine extends ReportBaseLine
*/
public function render($renderer)
{
- if ($this->x1 == '.') {
+ if ($this->x1 === ReportBaseElement::CURRENT_POSITION) {
$this->x1 = $renderer->getX();
}
- if ($this->y1 == '.') {
+ if ($this->y1 === ReportBaseElement::CURRENT_POSITION) {
$this->y1 = $renderer->getY();
}
- if ($this->x2 == '.') {
+ if ($this->x2 === ReportBaseElement::CURRENT_POSITION) {
$this->x2 = $renderer->getRemainingWidth();
}
- if ($this->y2 == '.') {
+ if ($this->y2 === ReportBaseElement::CURRENT_POSITION) {
$this->y2 = $renderer->getY();
}
// Vertical line