diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-09-28 10:13:10 +0100 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-09-28 10:13:10 +0100 |
| commit | 18d7a90d8a3b33b218801c0b68eb1a5140d7b4e7 (patch) | |
| tree | 3fe6aa4265c2cfd926b310dae92acd24fe24a17b /app/Report/ReportParserGenerate.php | |
| parent | 52348eb8c11b06a8488e13475e6561273832716a (diff) | |
| download | webtrees-18d7a90d8a3b33b218801c0b68eb1a5140d7b4e7.tar.gz webtrees-18d7a90d8a3b33b218801c0b68eb1a5140d7b4e7.tar.bz2 webtrees-18d7a90d8a3b33b218801c0b68eb1a5140d7b4e7.zip | |
PHPdoc
Diffstat (limited to 'app/Report/ReportParserGenerate.php')
| -rw-r--r-- | app/Report/ReportParserGenerate.php | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/app/Report/ReportParserGenerate.php b/app/Report/ReportParserGenerate.php index 0e2bceab83..10f7207bfa 100644 --- a/app/Report/ReportParserGenerate.php +++ b/app/Report/ReportParserGenerate.php @@ -152,6 +152,8 @@ class ReportParserGenerate extends ReportParserBase * @param resource $parser the resource handler for the XML parser * @param string $name the name of the XML element parsed * @param array $attrs an array of key value pairs for the attributes + * + * @return void */ protected function startElement($parser, $name, $attrs) { @@ -184,6 +186,8 @@ class ReportParserGenerate extends ReportParserBase * * @param resource $parser the resource handler for the XML parser * @param string $name the name of the XML element parsed + * + * @return void */ protected function endElement($parser, $name) { @@ -203,6 +207,8 @@ class ReportParserGenerate extends ReportParserBase * * @param resource $parser the resource handler for the XML parser * @param string $data the name of the XML element parsed + * + * @return void */ protected function characterData($parser, $data) { @@ -2177,7 +2183,7 @@ class ReportParserGenerate extends ReportParserBase uasort($this->list, '\Fisharebest\Webtrees\GedcomRecord::compare'); break; case 'CHAN': - uasort($this->list, function (GedcomRecord $x, GedcomRecord $y) { + uasort($this->list, function (GedcomRecord $x, GedcomRecord $y): int { return $y->lastChangeTimestamp(true) - $x->lastChangeTimestamp(true); }); break; @@ -2856,7 +2862,7 @@ class ReportParserGenerate extends ReportParserBase { return preg_replace_callback( '/\$(\w+)/', - function ($matches) use ($quote) { + function (array $matches) use ($quote): string { if (isset($this->vars[$matches[1]]['id'])) { if ($quote) { return "'" . addcslashes($this->vars[$matches[1]]['id'], "'") . "'"; |
