PhpSpreadsheet/tests/data/Reader
oleibman b6bd822b9c
Xlsx Reader Merge Range For Entire Column(s) or Row(s) (#2504)
* Xlsx Reader Merge Range For Entire Column(s) or Row(s)

Fix #2501. Merge range can be supplied as entire rows or columns, e.g. `1:1` or `A:C`. PhpSpreadsheet is expecting a row and a column to be specified for both parts of the range, and fails when the unexpected format shows up.

The code to clear cells within the merge range is very inefficient in terms of both memory and time, especially when the range is large (e.g. for an entire row or column). More efficient code is substituted. It is possible that we can get even more efficient by deleting the cleared cells rather than setting them to null. However, that needs more research, and there is no reason to delay this fix while I am researching.

When Xlsx Writer encounters a null cell, it writes it to the output file. For cell merges (especially involving whole rows or columns), this results in a lot of useless output. It is changed to skip the output of null cells when (a) the cell style matches its row's style, or (b) the row style is not specified and the cell style matches its column's style.

* Scrutinizer

See if these changes appease it.

* Improved CellIterators

Finally figured out how to improve efficiency here, meaning that there is no longer a reason to change Writer/Xlsx, so restore that.

* No Change for CellIterator

I had thought a change was needed for CellIterator, but it isn't.
2022-01-23 10:44:09 -08:00
..
CSV Csv, Boolean, and StringValueBinder (#2374) 2021-11-12 00:04:08 -08:00
Gnumeric Implement basic autofilter ranges with Gnumeric Reader (#2057) 2021-05-04 22:32:12 +02:00
HTML Improve Coverage for HTML Reader 2020-06-25 22:42:38 -07:00
Ods Ods defined names unit tests (#2054) 2021-05-03 08:39:42 +02:00
Slk Process Comments in Sylk File (#2277) 2021-08-26 11:56:13 -07:00
XLS Another Undefined Index in Xls Reader (#2470) 2021-12-31 13:43:59 -08:00
XLSX Xlsx Reader Merge Range For Entire Column(s) or Row(s) (#2504) 2022-01-23 10:44:09 -08:00
Xml Extract Property and Style readers from the XML Reader into separate classes (#2009) 2021-04-20 15:27:44 +02:00