summaryrefslogtreecommitdiff
path: root/app/Report/ReportBaseElement.php
diff options
context:
space:
mode:
authorRico Sonntag <mail@ricosonntag.de>2018-08-27 20:04:49 +0200
committerGreg Roach <fisharebest@gmail.com>2018-08-27 19:04:49 +0100
commit8f53f488f13e53e44dc48778e8f51ec9f91352dd (patch)
tree7c8de419d3b2381f073453ccf601f85bf25b5177 /app/Report/ReportBaseElement.php
parent12c79f746ea1903d66aea1fe0412eda6149a5532 (diff)
downloadwebtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.tar.gz
webtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.tar.bz2
webtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.zip
Added PHP7 return types to methods according doc block (#1864)
Diffstat (limited to 'app/Report/ReportBaseElement.php')
-rw-r--r--app/Report/ReportBaseElement.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/Report/ReportBaseElement.php b/app/Report/ReportBaseElement.php
index cb5e5f2f07..99dcdf96d5 100644
--- a/app/Report/ReportBaseElement.php
+++ b/app/Report/ReportBaseElement.php
@@ -40,7 +40,7 @@ class ReportBaseElement
*
* @return float
*/
- public function getHeight($renderer)
+ public function getHeight($renderer): float
{
return 0.0;
}
@@ -52,7 +52,7 @@ class ReportBaseElement
*
* @return float
*/
- public function getWidth($renderer)
+ public function getWidth($renderer): float
{
return 0.0;
}
@@ -64,7 +64,7 @@ class ReportBaseElement
*
* @return int
*/
- public function addText($t)
+ public function addText($t): int
{
$t = trim($t, "\r\n\t");
$t = str_replace([
@@ -86,7 +86,7 @@ class ReportBaseElement
*
* @return int
*/
- public function addNewline()
+ public function addNewline(): int
{
$this->text .= "\n";
@@ -98,7 +98,7 @@ class ReportBaseElement
*
* @return string
*/
- public function getValue()
+ public function getValue(): string
{
return $this->text;
}
@@ -111,7 +111,7 @@ class ReportBaseElement
*
* @return int
*/
- public function setWrapWidth($wrapwidth, $cellwidth)
+ public function setWrapWidth($wrapwidth, $cellwidth): int
{
return 0;
}