mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Various PSR12 code cleanup
This commit is contained in:
@@ -33,6 +33,14 @@ use Illuminate\Support\Collection;
|
||||
*/
|
||||
class ALERepository implements ALERepositoryInterface
|
||||
{
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getForObject(Model $model): Collection
|
||||
{
|
||||
return AuditLogEntry::where('auditable_id', $model->id)->where('auditable_type', get_class($model))->get();
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
@@ -48,12 +56,4 @@ class ALERepository implements ALERepositoryInterface
|
||||
$auditLogEntry->save();
|
||||
return $auditLogEntry;
|
||||
}
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function getForObject(Model $model): Collection
|
||||
{
|
||||
return AuditLogEntry::where('auditable_id', $model->id)->where('auditable_type', get_class($model))->get();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user