mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-05-04 13:16:31 +00:00
Autoformat lol
This commit is contained in:
@@ -37,13 +37,18 @@ class PrependDescription implements ActionInterface
|
||||
/**
|
||||
* TriggerInterface constructor.
|
||||
*/
|
||||
public function __construct(private readonly RuleAction $action) {}
|
||||
public function __construct(
|
||||
private readonly RuleAction $action
|
||||
) {}
|
||||
|
||||
public function actOnArray(array $journal): bool
|
||||
{
|
||||
$before = $journal['description'];
|
||||
$after = sprintf('%s%s', $this->action->getValue($journal), $journal['description']);
|
||||
DB::table('transaction_journals')->where('id', $journal['transaction_journal_id'])->limit(1)->update(['description' => $after]);
|
||||
DB::table('transaction_journals')
|
||||
->where('id', $journal['transaction_journal_id'])
|
||||
->limit(1)
|
||||
->update(['description' => $after]);
|
||||
|
||||
// journal
|
||||
/** @var TransactionJournal $object */
|
||||
|
||||
Reference in New Issue
Block a user