mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Fix phpstan things
This commit is contained in:
@@ -53,7 +53,7 @@ class SetDestinationToCashAccount implements ActionInterface
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
#[\Override] public function actOnArray(array $journal): bool
|
||||
public function actOnArray(array $journal): bool
|
||||
{
|
||||
/** @var User $user */
|
||||
$user = User::find($journal['user_id']);
|
||||
@@ -91,7 +91,7 @@ class SetDestinationToCashAccount implements ActionInterface
|
||||
event(new RuleActionFailedOnArray($this->action, $journal, trans('rules.cannot_find_source_transaction_account')));
|
||||
return false;
|
||||
}
|
||||
if (null !== $cashAccount && $cashAccount->id === $source->account_id) {
|
||||
if ($cashAccount->id === $source->account_id) {
|
||||
app('log')->error(
|
||||
sprintf(
|
||||
'New destination account ID #%d and current source account ID #%d are the same. Do nothing.',
|
||||
|
@@ -52,7 +52,7 @@ class SetSourceToCashAccount implements ActionInterface
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
#[\Override] public function actOnArray(array $journal): bool
|
||||
public function actOnArray(array $journal): bool
|
||||
{
|
||||
/** @var User $user */
|
||||
$user = User::find($journal['user_id']);
|
||||
@@ -90,7 +90,7 @@ class SetSourceToCashAccount implements ActionInterface
|
||||
event(new RuleActionFailedOnArray($this->action, $journal, trans('rules.cannot_find_destination_transaction_account')));
|
||||
return false;
|
||||
}
|
||||
if (null !== $cashAccount && $cashAccount->id === $destination->account_id) {
|
||||
if ($cashAccount->id === $destination->account_id) {
|
||||
app('log')->error(
|
||||
sprintf(
|
||||
'New source account ID #%d and current destination account ID #%d are the same. Do nothing.',
|
||||
|
Reference in New Issue
Block a user