summaryrefslogtreecommitdiff
path: root/app/Report/ReportHtmlFootnote.php
diff options
context:
space:
mode:
authorGreg Roach <greg@subaqua.co.uk>2021-09-09 22:15:46 +0100
committerGreg Roach <greg@subaqua.co.uk>2021-09-14 16:02:08 +0100
commit77bab46164e79833b0e2cc2442328cb5f47dd5e6 (patch)
treece2aa539e03a7904dfb81555a4448f711b829b00 /app/Report/ReportHtmlFootnote.php
parenta3148b03cff68ac7a179d4636354b8e1c00044ca (diff)
downloadwebtrees-77bab46164e79833b0e2cc2442328cb5f47dd5e6.tar.gz
webtrees-77bab46164e79833b0e2cc2442328cb5f47dd5e6.tar.bz2
webtrees-77bab46164e79833b0e2cc2442328cb5f47dd5e6.zip
Reports PHPdoc
Diffstat (limited to 'app/Report/ReportHtmlFootnote.php')
-rw-r--r--app/Report/ReportHtmlFootnote.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/app/Report/ReportHtmlFootnote.php b/app/Report/ReportHtmlFootnote.php
index e57d96f845..5309436f0c 100644
--- a/app/Report/ReportHtmlFootnote.php
+++ b/app/Report/ReportHtmlFootnote.php
@@ -36,7 +36,7 @@ class ReportHtmlFootnote extends ReportBaseFootnote
*
* @return void
*/
- public function render($renderer)
+ public function render($renderer): void
{
$renderer->setCurrentStyle('footnotenum');
echo '<a href="#footnote', $this->num, '"><sup>';
@@ -77,26 +77,26 @@ class ReportHtmlFootnote extends ReportBaseFootnote
/**
* Calculates the Footnotes height
*
- * @param HtmlRenderer $html
+ * @param HtmlRenderer $renderer
* @param float $cellWidth The width of the cell to use it for text wraping
*
* @return float Footnote height in points
*/
- public function getFootnoteHeight($html, float $cellWidth = 0): float
+ public function getFootnoteHeight(HtmlRenderer $renderer, float $cellWidth = 0): float
{
- if ($html->getCurrentStyle() !== $this->styleName) {
- $html->setCurrentStyle($this->styleName);
+ if ($renderer->getCurrentStyle() !== $this->styleName) {
+ $renderer->setCurrentStyle($this->styleName);
}
if ($cellWidth > 0) {
- $this->text = $html->textWrap($this->text, $cellWidth);
+ $this->text = $renderer->textWrap($this->text, $cellWidth);
}
$this->text .= "\n\n";
$ct = substr_count($this->text, "\n");
- $fsize = $html->getCurrentStyleHeight();
+ $fsize = $renderer->getCurrentStyleHeight();
- return $fsize * $ct * $html->cellHeightRatio;
+ return $fsize * $ct * $renderer->cellHeightRatio;
}
/**
@@ -105,7 +105,7 @@ class ReportHtmlFootnote extends ReportBaseFootnote
*
* @param HtmlRenderer $renderer
*
- * @return array{0:float,1:int,2:float|int}
+ * @return array{0:float,1:int,2:float}
*/
public function getWidth($renderer): array
{