Remove static references

This commit is contained in:
James Cole
2023-10-29 06:31:27 +01:00
parent 91b7d20f9b
commit e65d0eef6e
30 changed files with 80 additions and 80 deletions

View File

@@ -128,7 +128,7 @@ class UpdateRequest implements UpdateRequestInterface
$return['version'] = $response['version'];
$return['level'] = 'success';
$return['date'] = Carbon::createFromFormat('Y-m-d', $response['date'])->startOfDay();
Log::info('Response from update server', $response);
app('log')->info('Response from update server', $response);
return $return;
}

View File

@@ -64,7 +64,7 @@ trait AccountServiceTrait
$rules = ['iban' => 'required|iban'];
$validator = Validator::make($data, $rules);
if ($validator->fails()) {
Log::info(sprintf('Detected invalid IBAN ("%s"). Return NULL instead.', $iban));
app('log')->info(sprintf('Detected invalid IBAN ("%s"). Return NULL instead.', $iban));
return null;
}

View File

@@ -148,7 +148,7 @@ class JournalUpdateService
// can we update account data using the new type?
if ($this->hasValidAccounts()) {
Log::info('Account info is valid, now update.');
app('log')->info('Account info is valid, now update.');
// update accounts:
$this->updateAccounts();
@@ -805,7 +805,7 @@ class JournalUpdateService
$dest->save();
Log::debug(sprintf('Foreign amount is "%s" so remove foreign amount info.', $amount));
}
Log::info('Not enough info to update foreign currency info.');
app('log')->info('Not enough info to update foreign currency info.');
// refresh transactions.
$this->sourceTransaction->refresh();