1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-02-20 21:40:48 +01:00

fix minore

This commit is contained in:
Pek5892 2023-03-13 17:35:18 +01:00
parent 278e77d715
commit 84742ddcc7

View File

@ -99,7 +99,7 @@ abstract class BaseRecord implements RecordInterface
// Pad automatico sulla base del tipo
if ($record['tipo'] == 'string') {
$value = $this->padString($value, $record['dimensione'], isset($record['forzaPadding']) ? $record['forzaPadding'] : "" );
$value = $this->padString($value, $record['dimensione'], isset($record['forzaPadding']) ? $record['forzaPadding'] : STR_PAD_RIGHT );
} elseif ($record['tipo'] == 'numeric') {
$value = $this->padNumber($value, $record['dimensione']);
} elseif ($record['tipo'] == 'constant') {
@ -128,7 +128,7 @@ abstract class BaseRecord implements RecordInterface
return str_pad($string, $length, " ", $pad);
}
return str_pad($string, $length, " ");
return $string;
}
/**