Normalised numeric handling between XLS and XLSX, plus PSR2

This commit is contained in:
Chris Graham 2015-03-22 22:58:20 +00:00
parent de1d1c8397
commit 6eef69634b
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ class XLS extends AbstractWriter
$this->home(); $this->home();
foreach ($dataRow as $cell) { foreach ($dataRow as $cell) {
if (is_integer($cell)) { if (trim($cell, '0123456789.') == '' /*similar to is_numeric without having PHPs regular quirkiness*/) {
$wasWriteSuccessful = $wasWriteSuccessful && $this->number($cell); $wasWriteSuccessful = $wasWriteSuccessful && $this->number($cell);
} else } else
{ {