mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2026-01-09 07:26:02 +00:00
Various code cleanup.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
@@ -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.');
|
||||
|
||||
Reference in New Issue
Block a user