summaryrefslogtreecommitdiff
path: root/app/GedcomTag.php
diff options
context:
space:
mode:
authorRico Sonntag <mail@ricosonntag.de>2018-08-27 20:04:49 +0200
committerGreg Roach <fisharebest@gmail.com>2018-08-27 19:04:49 +0100
commit8f53f488f13e53e44dc48778e8f51ec9f91352dd (patch)
tree7c8de419d3b2381f073453ccf601f85bf25b5177 /app/GedcomTag.php
parent12c79f746ea1903d66aea1fe0412eda6149a5532 (diff)
downloadwebtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.tar.gz
webtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.tar.bz2
webtrees-8f53f488f13e53e44dc48778e8f51ec9f91352dd.zip
Added PHP7 return types to methods according doc block (#1864)
Diffstat (limited to 'app/GedcomTag.php')
-rw-r--r--app/GedcomTag.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/GedcomTag.php b/app/GedcomTag.php
index ff0259831d..6e9b7015fa 100644
--- a/app/GedcomTag.php
+++ b/app/GedcomTag.php
@@ -432,7 +432,7 @@ class GedcomTag
*
* @return bool
*/
- public static function isTag($tag)
+ public static function isTag($tag): bool
{
return in_array($tag, self::$ALL_TAGS);
}
@@ -1980,7 +1980,7 @@ class GedcomTag
*
* @return string
*/
- public static function getLabelValue($tag, $value, GedcomRecord $record = null, $element = 'div')
+ public static function getLabelValue($tag, $value, GedcomRecord $record = null, $element = 'div'): string
{
return
'<' . $element . ' class="fact_' . $tag . '">' .
@@ -1996,7 +1996,7 @@ class GedcomTag
*
* @return string[]
*/
- public static function getPicklistFacts($fact_type)
+ public static function getPicklistFacts($fact_type): array
{
switch ($fact_type) {
case 'INDI':
@@ -2267,7 +2267,7 @@ class GedcomTag
*
* @return string[]
*/
- public static function getFileFormTypes()
+ public static function getFileFormTypes(): array
{
$values = [];
foreach (self::$OBJE_FILE_FORM_TYPE as $type) {
@@ -2287,7 +2287,7 @@ class GedcomTag
*
* @return string
*/
- public static function createUid()
+ public static function createUid(): string
{
$uid = str_replace('-', '', Uuid::uuid4());