Remove static references

This commit is contained in:
James Cole
2023-10-29 06:33:43 +01:00
parent 075d459b7c
commit 4f2159b54d
205 changed files with 1287 additions and 1287 deletions

View File

@@ -53,7 +53,7 @@ trait ReconciliationValidation
}
// after that, search for it expecting an asset account or a liability.
Log::debug('Now in validateReconciliationDestination', $array);
app('log')->debug('Now in validateReconciliationDestination', $array);
// source can be any of the following types.
$validTypes = array_keys($this->combinations[$this->transactionType]);
@@ -65,7 +65,7 @@ trait ReconciliationValidation
return false;
}
$this->setSource($search);
Log::debug('Valid source account!');
app('log')->debug('Valid source account!');
return true;
}
@@ -85,13 +85,13 @@ trait ReconciliationValidation
// is expected to be "positive", i.e. the money flows from the
// source to the asset account that is the destination.
if (null === $accountId && null === $accountName) {
Log::debug('The source is valid because ID and name are NULL.');
app('log')->debug('The source is valid because ID and name are NULL.');
$this->setSource(new Account());
return true;
}
// after that, search for it expecting an asset account or a liability.
Log::debug('Now in validateReconciliationSource', $array);
app('log')->debug('Now in validateReconciliationSource', $array);
// source can be any of the following types.
$validTypes = array_keys($this->combinations[$this->transactionType]);
@@ -103,7 +103,7 @@ trait ReconciliationValidation
return false;
}
$this->setSource($search);
Log::debug('Valid source account!');
app('log')->debug('Valid source account!');
return true;
}