diff options
| author | Greg Roach <fisharebest@gmail.com> | 2016-12-25 21:44:26 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2016-12-25 21:46:23 +0000 |
| commit | 7a6ee1ac7cd0821562d35b111a96b219b46d7899 (patch) | |
| tree | 99faaab77f0eeff388c72e2d3aa1b70a519d8eb2 /app/Report/ReportHtmlText.php | |
| parent | c1343e2ddc990378c44729b8010d8918b623bffd (diff) | |
| download | webtrees-7a6ee1ac7cd0821562d35b111a96b219b46d7899.tar.gz webtrees-7a6ee1ac7cd0821562d35b111a96b219b46d7899.tar.bz2 webtrees-7a6ee1ac7cd0821562d35b111a96b219b46d7899.zip | |
Code style - single quotes
Diffstat (limited to 'app/Report/ReportHtmlText.php')
| -rw-r--r-- | app/Report/ReportHtmlText.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/app/Report/ReportHtmlText.php b/app/Report/ReportHtmlText.php index 47d48f9a90..6c248f9d80 100644 --- a/app/Report/ReportHtmlText.php +++ b/app/Report/ReportHtmlText.php @@ -32,7 +32,7 @@ class ReportHtmlText extends ReportBaseText { if ($renderer->getCurrentStyle() != $this->styleName) { $renderer->setCurrentStyle($this->styleName); } - $temptext = str_replace("#PAGENUM#", $renderer->pageNo(), $this->text); + $temptext = str_replace('#PAGENUM#', $renderer->pageNo(), $this->text); // underline «title» part of Source item $temptext = str_replace(['«', '»'], ['<u>', '</u>'], $temptext); @@ -50,7 +50,7 @@ class ReportHtmlText extends ReportBaseText { if ($renderer->getStringWidth($temptext) > $width) { $lines = explode("\n", $temptext); foreach ($lines as $line) { - echo "<div style=\"position:absolute;top:", $startY, "pt;", $renderer->alignRTL, ":", $startX, "pt;width:", $width, "pt;\">"; + echo '<div style="position:absolute;top:', $startY, 'pt;', $renderer->alignRTL, ':', $startX, 'pt;width:', $width, 'pt;">'; $line = $renderer->textWrap($line, $width); $startY += $renderer->getTextCellHeight($line); $renderer->setY($startY); @@ -58,7 +58,7 @@ class ReportHtmlText extends ReportBaseText { echo "</div>\n"; } } else { - echo "<div style=\"position:absolute;top:", $startY, "pt;", $renderer->alignRTL, ":", $startX, "pt;width:", $width, "pt;\">"; + echo '<div style="position:absolute;top:', $startY, 'pt;', $renderer->alignRTL, ':', $startX, 'pt;width:', $width, 'pt;">'; $renderer->write($temptext, $this->color); echo "</div>\n"; $renderer->setX($startX + $renderer->getStringWidth($temptext)); @@ -85,7 +85,7 @@ class ReportHtmlText extends ReportBaseText { } $style = $html->getStyle($this->styleName); - return ($style["size"] * $ct) * $html->cellHeightRatio; + return ($style['size'] * $ct) * $html->cellHeightRatio; } /** @@ -115,7 +115,7 @@ class ReportHtmlText extends ReportBaseText { if ($this->wrapWidthRemaining > 0) { // Check with line counter too! if ($lw >= $this->wrapWidthRemaining || $lfct > 1) { - $newtext = ""; + $newtext = ''; $wrapWidthRemaining = $this->wrapWidthRemaining; $lines = explode("\n", $this->text); // Go throught the text line by line @@ -124,22 +124,22 @@ class ReportHtmlText extends ReportBaseText { $lw = $html->getStringWidth($line); // If the line has to be wraped if ($lw > $wrapWidthRemaining) { - $words = explode(" ", $line); + $words = explode(' ', $line); $addspace = count($words); $lw = 0; foreach ($words as $word) { $addspace--; - $lw += $html->getStringWidth($word . " "); + $lw += $html->getStringWidth($word . ' '); if ($lw <= $wrapWidthRemaining) { $newtext .= $word; if ($addspace != 0) { - $newtext .= " "; + $newtext .= ' '; } } else { - $lw = $html->getStringWidth($word . " "); + $lw = $html->getStringWidth($word . ' '); $newtext .= "\n$word"; if ($addspace != 0) { - $newtext .= " "; + $newtext .= ' '; } // Reset the wrap width to the cell width $wrapWidthRemaining = $this->wrapWidthCell; |
