This commit is contained in:
2024-01-18 13:05:36 -03:00
parent aef1ccd4a0
commit ad003c7dcf
2 changed files with 0 additions and 18 deletions

View File

@ -21,14 +21,6 @@ class Itau extends Banco
protected function parseFile(UploadedFileInterface $uploadedFile): array
{
function log(mixed $elem): void
{
if (!is_string($elem)) {
$elem = var_export($elem,true);
}
error_log($elem.PHP_EOL,3,'/logs/debug');
}
$filename = '/tmp/cartola.xls';
$uploadedFile->moveTo($filename);
@ -74,7 +66,6 @@ class Itau extends Banco
if ($col === 'Fecha') {
list($d, $m) = explode('/', $value);
$value = "{$year}-{$m}-{$d}";
log($value);
}
$rowData[$col] = $value;
$colIndex ++;

View File

@ -21,14 +21,6 @@ class Santander extends Banco
}
protected function parseFile(UploadedFileInterface $uploadedFile): array
{
function log(mixed $elem): void
{
if (!is_string($elem)) {
$elem = var_export($elem,true);
}
error_log($elem.PHP_EOL,3,'/logs/debug');
}
$filename = '/tmp/cartola.xlsx';
$uploadedFile->moveTo($filename);
@ -57,7 +49,6 @@ class Santander extends Banco
$value = $col->getCalculatedValue();
$col = $columns[$colIndex];
if ($col === 'FECHA') {
log($value);
list($d,$m,$Y) = explode('/', $value);
$value = "{$Y}-{$m}-{$d}";
}