summaryrefslogtreecommitdiff
path: root/app/Report/ReportHtmlText.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2016-12-23 21:15:42 +0000
committerGreg Roach <fisharebest@gmail.com>2016-12-23 21:15:42 +0000
commit13abd6f3a37322f885d85df150e105d27ad81f8d (patch)
treef023015b458c95273afe5876246adf141de169ca /app/Report/ReportHtmlText.php
parent2c55bacfbfed3c49d3f2ac181fb519d24ffe2803 (diff)
downloadwebtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.gz
webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.bz2
webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.zip
Code style - short array syntax
Diffstat (limited to 'app/Report/ReportHtmlText.php')
-rw-r--r--app/Report/ReportHtmlText.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Report/ReportHtmlText.php b/app/Report/ReportHtmlText.php
index 68e35a41a6..47d48f9a90 100644
--- a/app/Report/ReportHtmlText.php
+++ b/app/Report/ReportHtmlText.php
@@ -34,7 +34,7 @@ class ReportHtmlText extends ReportBaseText {
}
$temptext = str_replace("#PAGENUM#", $renderer->pageNo(), $this->text);
// underline «title» part of Source item
- $temptext = str_replace(array('«', '»'), array('<u>', '</u>'), $temptext);
+ $temptext = str_replace(['«', '»'], ['<u>', '</u>'], $temptext);
// If any text at all
if (!empty($temptext)) {
@@ -162,7 +162,7 @@ class ReportHtmlText extends ReportBaseText {
$this->text = $newtext;
$lfct = substr_count($this->text, "\n");
- return array($lw, 1, $lfct);
+ return [$lw, 1, $lfct];
}
}
$l = 0;
@@ -171,6 +171,6 @@ class ReportHtmlText extends ReportBaseText {
$l = 2;
}
- return array($lw, $l, $lfct);
+ return [$lw, $l, $lfct];
}
}