diff --git a/app/Models/Account.php b/app/Models/Account.php index 1bdfd2ad71..06e36431cb 100644 --- a/app/Models/Account.php +++ b/app/Models/Account.php @@ -134,7 +134,6 @@ class Account extends Model } /** - * @codeCoverageIgnore * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function accountMeta() @@ -171,11 +170,9 @@ class Account extends Model * * @param string $fieldName * - * @codeCoverageIgnore - * - * @return string|null + * @return string */ - public function getMeta($fieldName) + public function getMeta($fieldName): string { foreach ($this->accountMeta as $meta) { if ($meta->name == $fieldName) { @@ -183,8 +180,7 @@ class Account extends Model } } - return null; - + return ''; } /** diff --git a/resources/views/accounts/create.twig b/resources/views/accounts/create.twig index 4c61ee243a..0541560806 100644 --- a/resources/views/accounts/create.twig +++ b/resources/views/accounts/create.twig @@ -21,7 +21,7 @@