Empty rows do not need to be written for XLSX files (#336)
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user