summaryrefslogtreecommitdiff
path: root/app/Report/ReportPdfCell.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-08-09 11:50:48 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-08-09 15:11:52 +0100
commitce15a17af204fa17bb93b13c5560e56ac2e40c87 (patch)
tree3d8a3902c96109494c38c516f6250ee15461933f /app/Report/ReportPdfCell.php
parentbf43cb39fd09a9a0812ae9e52b69b20a98790ce5 (diff)
downloadwebtrees-ce15a17af204fa17bb93b13c5560e56ac2e40c87.tar.gz
webtrees-ce15a17af204fa17bb93b13c5560e56ac2e40c87.tar.bz2
webtrees-ce15a17af204fa17bb93b13c5560e56ac2e40c87.zip
CodeStyle
Diffstat (limited to 'app/Report/ReportPdfCell.php')
-rw-r--r--app/Report/ReportPdfCell.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Report/ReportPdfCell.php b/app/Report/ReportPdfCell.php
index dd01354a86..c42d21f4ef 100644
--- a/app/Report/ReportPdfCell.php
+++ b/app/Report/ReportPdfCell.php
@@ -54,8 +54,8 @@ class ReportPdfCell extends ReportBaseCell
$b = hexdec($match[3]);
$renderer->SetFillColor($r, $g, $b);
}
- } // If no color set then don't fill
- else {
+ } else {
+ // If no color set then don't fill
$this->fill = 0;
}
}
@@ -82,8 +82,8 @@ class ReportPdfCell extends ReportBaseCell
// If current position (left)
if ($this->left == '.') {
$cX = $renderer->GetX();
- } // For static position add margin (also updates X)
- else {
+ } else {
+ // For static position add margin (also updates X)
$cX = $renderer->addMarginX($this->left);
}
@@ -137,8 +137,8 @@ class ReportPdfCell extends ReportBaseCell
// Reset the last cell height for the next line
if ($this->newline >= 1) {
$renderer->lastCellHeight = 0;
- } // OR save the last height if heigher then before
- elseif ($renderer->lastCellHeight < $renderer->getLastH()) {
+ } elseif ($renderer->lastCellHeight < $renderer->getLastH()) {
+ // OR save the last height if heigher then before
$renderer->lastCellHeight = $renderer->getLastH();
}