summaryrefslogtreecommitdiff
path: root/app/Report/ReportParserBase.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/ReportParserBase.php
parent2c55bacfbfed3c49d3f2ac181fb519d24ffe2803 (diff)
downloadwebtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.gz
webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.tar.bz2
webtrees-13abd6f3a37322f885d85df150e105d27ad81f8d.zip
Code style - short array syntax
Diffstat (limited to 'app/Report/ReportParserBase.php')
-rw-r--r--app/Report/ReportParserBase.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Report/ReportParserBase.php b/app/Report/ReportParserBase.php
index 3eae80bc32..5a0ea388a4 100644
--- a/app/Report/ReportParserBase.php
+++ b/app/Report/ReportParserBase.php
@@ -32,11 +32,11 @@ class ReportParserBase {
* @param ReportBase $report_root
* @param string[][] $vars
*/
- public function __construct($report, ReportBase $report_root = null, $vars = array()) {
+ public function __construct($report, ReportBase $report_root = null, $vars = []) {
$this->xml_parser = xml_parser_create();
xml_parser_set_option($this->xml_parser, XML_OPTION_CASE_FOLDING, false);
- xml_set_element_handler($this->xml_parser, array($this, 'startElement'), array($this, 'endElement'));
- xml_set_character_data_handler($this->xml_parser, array($this, 'characterData'));
+ xml_set_element_handler($this->xml_parser, [$this, 'startElement'], [$this, 'endElement']);
+ xml_set_character_data_handler($this->xml_parser, [$this, 'characterData']);
$fp = fopen($report, 'r');
while (($data = fread($fp, 4096))) {