mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 00:04:24 +00:00
Big refactor to remove the deprecated transaction collector.
This commit is contained in:
@@ -69,7 +69,7 @@ class ImportableConverter
|
||||
*/
|
||||
public function convert(array $importables): array
|
||||
{
|
||||
$total = \count($importables);
|
||||
$total = count($importables);
|
||||
Log::debug(sprintf('Going to convert %d import transactions', $total));
|
||||
$result = [];
|
||||
/** @var ImportTransaction $importable */
|
||||
|
@@ -90,7 +90,7 @@ class MappedValuesValidator
|
||||
foreach ($mappings as $role => $values) {
|
||||
Log::debug(sprintf('Now at role "%s"', $role));
|
||||
$values = array_unique($values);
|
||||
if (\count($values) > 0) {
|
||||
if (count($values) > 0) {
|
||||
switch ($role) {
|
||||
default:
|
||||
throw new FireflyException(sprintf('Cannot validate mapped values for role "%s"', $role)); // @codeCoverageIgnore
|
||||
|
@@ -69,7 +69,7 @@ class MappingConverger
|
||||
{
|
||||
Log::debug('Start converging process.');
|
||||
$collection = [];
|
||||
$total = \count($lines);
|
||||
$total = count($lines);
|
||||
/** @var array $line */
|
||||
foreach ($lines as $lineIndex => $line) {
|
||||
Log::debug(sprintf('Now converging line %d out of %d.', $lineIndex + 1, $total));
|
||||
|
Reference in New Issue
Block a user