summaryrefslogtreecommitdiff
path: root/app/Report/ReportHtmlCell.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-09-08 09:23:14 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-09-08 09:23:14 +0100
commit521357272b83a047e04eaf656fd5f38d55c27720 (patch)
treee9f59b3b3617f0ceeaebcd3a87ee65e4cac03af2 /app/Report/ReportHtmlCell.php
parentc69b134abf9af870d537ec6967ba43f6850aae4f (diff)
downloadwebtrees-521357272b83a047e04eaf656fd5f38d55c27720.tar.gz
webtrees-521357272b83a047e04eaf656fd5f38d55c27720.tar.bz2
webtrees-521357272b83a047e04eaf656fd5f38d55c27720.zip
CodeStyle
Diffstat (limited to 'app/Report/ReportHtmlCell.php')
-rw-r--r--app/Report/ReportHtmlCell.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Report/ReportHtmlCell.php b/app/Report/ReportHtmlCell.php
index df887f621e..12b5834c89 100644
--- a/app/Report/ReportHtmlCell.php
+++ b/app/Report/ReportHtmlCell.php
@@ -146,7 +146,7 @@ class ReportHtmlCell extends ReportBaseCell
$this->width = $renderer->getRemainingWidth();
}
// We have to calculate a different width for the padding, counting on both side
- $cW = $this->width - ($cP * 2);
+ $cW = $this->width - $cP * 2;
// If there is any text
if (!empty($temptext)) {
@@ -202,12 +202,12 @@ class ReportHtmlCell extends ReportBaseCell
$renderer->lastCellHeight = $this->height;
} elseif ($this->newline === 1) {
// -> On a new line at the margin - Default
- $renderer->setXy(0, $renderer->getY() + $this->height + ($cP * 2));
+ $renderer->setXy(0, $renderer->getY() + $this->height + $cP * 2);
// Reset the last cell height for the next line
$renderer->lastCellHeight = 0;
} elseif ($this->newline === 2) {
// -> On a new line at the end of this cell
- $renderer->setXy($renderer->getX() + $this->width, $renderer->getY() + $this->height + ($cP * 2));
+ $renderer->setXy($renderer->getX() + $this->width, $renderer->getY() + $this->height + $cP * 2);
// Reset the last cell height for the next line
$renderer->lastCellHeight = 0;
}