Some cosmetic changes for #107.

This commit is contained in:
James Cole
2016-02-11 06:30:09 +01:00
parent aa057d6a57
commit 40245ef43b
3 changed files with 13 additions and 14 deletions

View File

@@ -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 '';
}
/**