mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-21 14:00:53 +01:00
fix minore
This commit is contained in:
parent
278e77d715
commit
84742ddcc7
@ -99,7 +99,7 @@ abstract class BaseRecord implements RecordInterface
|
|||||||
|
|
||||||
// Pad automatico sulla base del tipo
|
// Pad automatico sulla base del tipo
|
||||||
if ($record['tipo'] == 'string') {
|
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') {
|
} elseif ($record['tipo'] == 'numeric') {
|
||||||
$value = $this->padNumber($value, $record['dimensione']);
|
$value = $this->padNumber($value, $record['dimensione']);
|
||||||
} elseif ($record['tipo'] == 'constant') {
|
} elseif ($record['tipo'] == 'constant') {
|
||||||
@ -128,7 +128,7 @@ abstract class BaseRecord implements RecordInterface
|
|||||||
return str_pad($string, $length, " ", $pad);
|
return str_pad($string, $length, " ", $pad);
|
||||||
}
|
}
|
||||||
|
|
||||||
return str_pad($string, $length, " ");
|
return $string;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user