Add logs.

This commit is contained in:
James Cole 2020-01-09 19:45:13 +01:00
parent cf067d0bd2
commit 7362a36a98
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E

View File

@ -241,13 +241,14 @@ class BillTransformer extends AbstractTransformer
$currentStart = clone $nextExpectedMatch; $currentStart = clone $nextExpectedMatch;
$loop++; $loop++;
} }
Log::debug(sprintf('Loop has ended after %d loops', $loop));
$simple = $set->map( $simple = $set->map(
static function (Carbon $date) { static function (Carbon $date) {
return $date->format('Y-m-d'); return $date->format('Y-m-d');
} }
); );
$array = $simple->toArray();
Log::debug(sprintf('Loop has ended after %d loops', $loop), $array);
return $simple->toArray(); return $array;
} }
} }