Code reordering and reformatting. I should really start employing style CI.

This commit is contained in:
James Cole
2021-09-18 10:26:12 +02:00
parent 9b9d52e99f
commit 4003cea759
344 changed files with 2776 additions and 2605 deletions

View File

@@ -49,8 +49,8 @@ class AccountFactory
protected array $validAssetFields;
protected array $validCCFields;
protected array $validFields;
private array $canHaveVirtual;
private array $canHaveOpeningBalance;
private array $canHaveVirtual;
private User $user;
/**

View File

@@ -68,7 +68,7 @@ class AccountMetaFactory
try {
$entry->delete();
} catch (Exception $e) { // @phpstan-ignore-line
Log::debug(sprintf('Could not delete entry: %s', $e->getMessage()));
Log::debug(sprintf('Could not delete entry: %s', $e->getMessage()));
}
return null;

View File

@@ -54,7 +54,7 @@ class AttachmentFactory
/** @var Transaction $transaction */
$transaction = $this->user->transactions()->find((int)$data['attachable_id']);
if (null === $transaction) {
throw new FireflyException('Unexpectedly could not find transaction');
throw new FireflyException('Unexpectedly could not find transaction');
}
$data['attachable_id'] = $transaction->transaction_journal_id;
$model = TransactionJournal::class;

View File

@@ -141,14 +141,6 @@ class RecurrenceFactory
return $recurrence;
}
/**
* @param User $user
*/
public function setUser(User $user): void
{
$this->user = $user;
}
/**
* @return MessageBag
*/
@@ -157,5 +149,13 @@ class RecurrenceFactory
return $this->errors;
}
/**
* @param User $user
*/
public function setUser(User $user): void
{
$this->user = $user;
}
}

View File

@@ -50,7 +50,7 @@ class TransactionJournalMetaFactory
try {
$entry->delete();
} catch (Exception $e) { // @phpstan-ignore-line
Log::error(sprintf('Could not delete transaction journal meta: %s', $e->getMessage()));
Log::error(sprintf('Could not delete transaction journal meta: %s', $e->getMessage()));
}
return null;
@@ -68,7 +68,7 @@ class TransactionJournalMetaFactory
try {
$entry->delete();
} catch (Exception $e) { // @phpstan-ignore-line
Log::error(sprintf('Could not delete transaction journal meta: %s', $e->getMessage()));
Log::error(sprintf('Could not delete transaction journal meta: %s', $e->getMessage()));
}
}