Empty rows do not need to be written for XLSX files (#336)

This commit is contained in:
Adrien Loison authored and GitHub committed 2016-10-17 11:40:52 -07:00
1 parent 2fafb63115
commit 179ab483d6
4 files changed
+83 -5

No files matched your search

@@ -46,6 +46,15 @@ class CellHelper
return self::$columnIndexToCellIndexCache[$originalColumnIndex];
}
/**
* @param $value
* @return bool Whether the given value is considered "empty"
*/
public static function isEmpty($value)
{
return ($value === null || $value === '');
}
/**
* @param $value
* @return bool Whether the given value is a non empty string