Clean up code and comments.

This commit is contained in:
James Cole
2023-02-22 18:14:14 +01:00
parent e6dc881f56
commit e421b29b01
249 changed files with 647 additions and 1044 deletions

View File

@@ -79,7 +79,6 @@ class CurrencyExchangeRate extends Model
protected $fillable = ['user_id', 'from_currency_id', 'to_currency_id', 'date', 'rate'];
/**
* @return BelongsTo
*/
public function fromCurrency(): BelongsTo
@@ -88,7 +87,6 @@ class CurrencyExchangeRate extends Model
}
/**
* @return BelongsTo
*/
public function toCurrency(): BelongsTo
@@ -97,7 +95,6 @@ class CurrencyExchangeRate extends Model
}
/**
* @return BelongsTo
*/
public function user(): BelongsTo
@@ -111,7 +108,7 @@ class CurrencyExchangeRate extends Model
protected function rate(): Attribute
{
return Attribute::make(
get: fn ($value) => (string) $value,
get: fn ($value) => (string)$value,
);
}
@@ -121,7 +118,7 @@ class CurrencyExchangeRate extends Model
protected function userRate(): Attribute
{
return Attribute::make(
get: fn ($value) => (string) $value,
get: fn ($value) => (string)$value,
);
}
}