Various code cleanup.

This commit is contained in:
James Cole
2021-05-24 08:50:17 +02:00
parent 3ec9753808
commit 815fd5ff6b
135 changed files with 643 additions and 582 deletions

View File

@@ -52,7 +52,7 @@ class CreateAutoBudgetLimits implements ShouldQueue
*
* @codeCoverageIgnore
*
* @param Carbon $date
* @param Carbon|null $date
*/
public function __construct(?Carbon $date)
{
@@ -238,6 +238,8 @@ class CreateAutoBudgetLimits implements ShouldQueue
/**
* @param AutoBudget $autoBudget
*
* @throws FireflyException
*/
private function createRollover(AutoBudget $autoBudget): void
{

View File

@@ -64,7 +64,7 @@ class CreateRecurringTransactions implements ShouldQueue
*
* @codeCoverageIgnore
*
* @param Carbon $date
* @param Carbon|null $date
*/
public function __construct(?Carbon $date)
{
@@ -347,6 +347,8 @@ class CreateRecurringTransactions implements ShouldQueue
* @param Carbon $date
*
* @return TransactionGroup|null
* @throws \FireflyIII\Exceptions\DuplicateTransactionException
* @throws \FireflyIII\Exceptions\FireflyException
*/
private function handleOccurrence(Recurrence $recurrence, RecurrenceRepetition $repetition, Carbon $date): ?TransactionGroup
{

View File

@@ -54,7 +54,7 @@ class SubmitTelemetryData implements ShouldQueue
*
* @codeCoverageIgnore
*
* @param Carbon $date
* @param Carbon|null $date
*/
public function __construct(?Carbon $date)
{
@@ -80,7 +80,7 @@ class SubmitTelemetryData implements ShouldQueue
$json = $this->parseJson($telemetry);
try {
$body = json_encode($json, JSON_THROW_ON_ERROR, 512);
$body = json_encode($json, JSON_THROW_ON_ERROR);
} catch (JsonException $e) {
Log::error($e->getMessage());
Log::error('Could not parse JSON.');