diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-11-11 08:59:08 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-11-18 09:14:43 +0000 |
| commit | 138ca96c29e1b115c3b96889a80267d29566502e (patch) | |
| tree | 8155ece9d06e5bd20fd463f69c37cd5da1142209 /app/Fact.php | |
| parent | 905ab80a6c5f0edd40befb52ad356666b2d993f9 (diff) | |
| download | webtrees-138ca96c29e1b115c3b96889a80267d29566502e.tar.gz webtrees-138ca96c29e1b115c3b96889a80267d29566502e.tar.bz2 webtrees-138ca96c29e1b115c3b96889a80267d29566502e.zip | |
Rename Fact::getGedcom() to gedcom()
Diffstat (limited to 'app/Fact.php')
| -rw-r--r-- | app/Fact.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/Fact.php b/app/Fact.php index 0c73158c34..c8180f148d 100644 --- a/app/Fact.php +++ b/app/Fact.php @@ -331,7 +331,7 @@ class Fact * * @return string */ - public function getGedcom(): string + public function gedcom(): string { return $this->gedcom; } @@ -442,7 +442,7 @@ class Fact */ public function getCitations(): array { - preg_match_all('/\n(2 SOUR @(' . WT_REGEX_XREF . ')@(?:\n[3-9] .*)*)/', $this->getGedcom(), $matches, PREG_SET_ORDER); + preg_match_all('/\n(2 SOUR @(' . WT_REGEX_XREF . ')@(?:\n[3-9] .*)*)/', $this->gedcom(), $matches, PREG_SET_ORDER); $citations = []; foreach ($matches as $match) { $source = Source::getInstance($match[2], $this->record()->getTree()); @@ -462,7 +462,7 @@ class Fact public function getNotes(): array { $notes = []; - preg_match_all('/\n2 NOTE ?(.*(?:\n3.*)*)/', $this->getGedcom(), $matches); + preg_match_all('/\n2 NOTE ?(.*(?:\n3.*)*)/', $this->gedcom(), $matches); foreach ($matches[1] as $match) { $note = preg_replace("/\n3 CONT ?/", "\n", $match); if (preg_match('/@(' . WT_REGEX_XREF . ')@/', $note, $nmatch)) { @@ -488,7 +488,7 @@ class Fact public function getMedia(): array { $media = []; - preg_match_all('/\n2 OBJE @(' . WT_REGEX_XREF . ')@/', $this->getGedcom(), $matches); + preg_match_all('/\n2 OBJE @(' . WT_REGEX_XREF . ')@/', $this->gedcom(), $matches); foreach ($matches[1] as $match) { $obje = Media::getInstance($match, $this->record()->getTree()); if ($obje && $obje->canShow()) { |
