Removed debug output

This commit is contained in:
Jeroen De Meerleer 2019-07-16 16:10:53 +02:00
parent f3de844a4c
commit 7cb1c512a9
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -95,7 +95,6 @@ class Swar4 implements ReaderInterface
case 'String': case 'String':
case 'Date': case 'Date':
$length = $this->readData('Int', $handle); $length = $this->readData('Int', $handle);
echo $length . ' ';
if ($length == 0) { if ($length == 0) {
return ''; return '';
} }
@ -104,10 +103,8 @@ class Swar4 implements ReaderInterface
if ($data == '') { if ($data == '') {
return (is_null($default)) ? '' : $default; return (is_null($default)) ? '' : $default;
} }
echo $data . PHP_EOL;
return iconv('windows-1252', 'utf-8', $data); return iconv('windows-1252', 'utf-8', $data);
} elseif ($type == 'Date') { } elseif ($type == 'Date') {
echo $data . 'date' . PHP_EOL;
if ($data == '') { if ($data == '') {
return (is_null($default)) ? $this->convertStringToDate('01/01/1900') : $default; return (is_null($default)) ? $this->convertStringToDate('01/01/1900') : $default;
} }
@ -195,7 +192,6 @@ class Swar4 implements ReaderInterface
public function convertStringToDate(string $string): \DateTime public function convertStringToDate(string $string): \DateTime
{ {
echo $string;
return DateTime::createFromFormat('d/m/Y', $string); return DateTime::createFromFormat('d/m/Y', $string);
} }
} }