summaryrefslogtreecommitdiff
path: root/app/Report/ReportParserGenerate.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-08-19 17:21:53 +0100
committerGreg Roach <fisharebest@webtrees.net>2018-08-19 20:11:50 +0100
commit59f2f229057fe08ec1b09bd435699190641eed6a (patch)
treeedae798c5680447a9cb156d2eb1501b7b8079fa7 /app/Report/ReportParserGenerate.php
parentac1dac2987a776a9b2f5335b448bfce186831f31 (diff)
downloadwebtrees-59f2f229057fe08ec1b09bd435699190641eed6a.tar.gz
webtrees-59f2f229057fe08ec1b09bd435699190641eed6a.tar.bz2
webtrees-59f2f229057fe08ec1b09bd435699190641eed6a.zip
CodeStyle
Diffstat (limited to 'app/Report/ReportParserGenerate.php')
-rw-r--r--app/Report/ReportParserGenerate.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Report/ReportParserGenerate.php b/app/Report/ReportParserGenerate.php
index edaafbc9e2..a72c122d29 100644
--- a/app/Report/ReportParserGenerate.php
+++ b/app/Report/ReportParserGenerate.php
@@ -135,7 +135,7 @@ class ReportParserGenerate extends ReportParserBase
$this->report = $report;
$this->report_root = $report_root;
$this->wt_report = $report_root;
- $this->current_element = new ReportBaseElement;
+ $this->current_element = new ReportBaseElement();
$this->vars = $vars;
$this->tree = $tree;
@@ -891,7 +891,7 @@ class ReportParserGenerate extends ReportParserBase
$name = strip_tags($name);
if (!empty($attrs['truncate'])) {
if (mb_strlen($name) > $attrs['truncate']) {
- $name = mb_substr($name, 0, $attrs['truncate'] -1) . '…';
+ $name = mb_substr($name, 0, $attrs['truncate'] - 1) . '…';
}
} else {
$addname = $record->getAddName();
@@ -1465,7 +1465,7 @@ class ReportParserGenerate extends ReportParserBase
$i++;
}
- $ret = (new ExpressionLanguage)->evaluate($condition);
+ $ret = (new ExpressionLanguage())->evaluate($condition);
if (!$ret) {
$this->process_ifs++;
@@ -2400,7 +2400,7 @@ class ReportParserGenerate extends ReportParserBase
foreach ($this->list as $key => $value) {
$this->generation = $value->generation;
if ($this->generation == $genCounter) {
- $newarray[$key] = new \stdClass;
+ $newarray[$key] = new \stdClass();
$newarray[$key]->generation = $this->generation;
}
}