summaryrefslogtreecommitdiff
path: root/app/Fact.php
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@webtrees.net>2018-11-11 09:55:22 +0000
committerGreg Roach <fisharebest@webtrees.net>2018-11-18 09:14:43 +0000
commit7b7d8067c3f26e71ae2fa194c3d6722f7d6ebd5a (patch)
treeadddab376c359c67846607eb6d2155c477e6e87b /app/Fact.php
parent138ca96c29e1b115c3b96889a80267d29566502e (diff)
downloadwebtrees-7b7d8067c3f26e71ae2fa194c3d6722f7d6ebd5a.tar.gz
webtrees-7b7d8067c3f26e71ae2fa194c3d6722f7d6ebd5a.tar.bz2
webtrees-7b7d8067c3f26e71ae2fa194c3d6722f7d6ebd5a.zip
Rename Fact::getLabel() to label()
Diffstat (limited to 'app/Fact.php')
-rw-r--r--app/Fact.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Fact.php b/app/Fact.php
index c8180f148d..4ce8b6cea7 100644
--- a/app/Fact.php
+++ b/app/Fact.php
@@ -383,7 +383,7 @@ class Fact
*
* @return string
*/
- public function getLabel(): string
+ public function label(): string
{
// Custom FACT/EVEN - with a TYPE
if (($this->tag === 'FACT' || $this->tag === 'EVEN') && $this->attribute('TYPE') !== '') {
@@ -541,7 +541,7 @@ class Fact
return
'<div class="' . $class . '">' .
/* I18N: a label/value pair, such as “Occupation: Farmer”. Some languages may need to change the punctuation. */
- I18N::translate('<span class="label">%1$s:</span> <span class="field" dir="auto">%2$s</span>', $this->getLabel(), implode(' — ', $attributes)) .
+ I18N::translate('<span class="label">%1$s:</span> <span class="field" dir="auto">%2$s</span>', $this->label(), implode(' — ', $attributes)) .
'</div>';
}