summaryrefslogtreecommitdiff
path: root/app/Family.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-11-12 06:07:05 +0000
committerGreg Roach <fisharebest@webtrees.net>2018-11-18 09:29:38 +0000
commit30158ae76837ce51811d3e0fca2ea5852182f42e (patch)
treedb9dcb7c8ac33da99511227a61b30e6ac49ffdfb /app/Family.php
parent3a136367baf551e4fb2b2b7afbc3e7e870b52568 (diff)
downloadwebtrees-30158ae76837ce51811d3e0fca2ea5852182f42e.tar.gz
webtrees-30158ae76837ce51811d3e0fca2ea5852182f42e.tar.bz2
webtrees-30158ae76837ce51811d3e0fca2ea5852182f42e.zip
Rename GedcomRecord::getFacts() to facts()
Diffstat (limited to 'app/Family.php')
-rw-r--r--app/Family.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Family.php b/app/Family.php
index f9cca0345c..62fe2347f4 100644
--- a/app/Family.php
+++ b/app/Family.php
@@ -242,7 +242,7 @@ class Family extends GedcomRecord
$SHOW_PRIVATE_RELATIONSHIPS = (bool) $this->tree->getPreference('SHOW_PRIVATE_RELATIONSHIPS');
$children = [];
- foreach ($this->getFacts('CHIL', false, $access_level, $SHOW_PRIVATE_RELATIONSHIPS) as $fact) {
+ foreach ($this->facts('CHIL', false, $access_level, $SHOW_PRIVATE_RELATIONSHIPS) as $fact) {
$child = $fact->target();
if ($child instanceof Individual && ($SHOW_PRIVATE_RELATIONSHIPS || $child->canShowName($access_level))) {
$children[] = $child;
@@ -273,7 +273,7 @@ class Family extends GedcomRecord
public function getNumberOfChildren(): int
{
$nchi = count($this->getChildren());
- foreach ($this->getFacts('NCHI') as $fact) {
+ foreach ($this->facts('NCHI') as $fact) {
$nchi = max($nchi, (int) $fact->value());
}