diff options
| author | Greg Roach <fisharebest@webtrees.net> | 2018-11-11 06:32:27 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@webtrees.net> | 2018-11-18 09:14:42 +0000 |
| commit | 84586c024c68dbfa3b15df636ed2b74037428442 (patch) | |
| tree | 3c15ff2a9b109ef89044be8730c49662e404927e /app/Fact.php | |
| parent | e7766c081c2e7ece562ab624d78f341efea2ba24 (diff) | |
| download | webtrees-84586c024c68dbfa3b15df636ed2b74037428442.tar.gz webtrees-84586c024c68dbfa3b15df636ed2b74037428442.tar.bz2 webtrees-84586c024c68dbfa3b15df636ed2b74037428442.zip | |
Rename Fact::getValue() to value()
Diffstat (limited to 'app/Fact.php')
| -rw-r--r-- | app/Fact.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Fact.php b/app/Fact.php index 2c4b346a71..e13d3eef30 100644 --- a/app/Fact.php +++ b/app/Fact.php @@ -187,7 +187,7 @@ class Fact * * @return string */ - public function getValue() + public function value() { if (preg_match('/^1 (?:' . $this->tag . ') ?(.*(?:(?:\n2 CONT ?.*)*))/', $this->gedcom, $match)) { return preg_replace("/\n2 CONT ?/", "\n", $match[1]); @@ -203,7 +203,7 @@ class Fact */ public function getTarget() { - $xref = trim($this->getValue(), '@'); + $xref = trim($this->value(), '@'); switch ($this->tag) { case 'FAMC': case 'FAMS': @@ -512,7 +512,7 @@ class Fact $attributes[] = $target->getFullName(); } else { // Fact value - $value = $this->getValue(); + $value = $this->value(); if ($value !== '' && $value !== 'Y') { $attributes[] = '<span dir="auto">' . e($value) . '</span>'; } |
