Mark Baker
6c25b6f422
Refactor Xlsx Properties Reader code into a separate class ( #1001 )
...
* Unit tests for refactoring Spreadsheet properties
* Refactor Xlsx Properties Reader code into a separate class
2019-06-10 16:44:55 +02:00
MarkBaker
d6018a273e
Codestyle fixes in tests.... spawn of the devil
2019-05-30 12:23:25 +02:00
MarkBaker
9ba96efc97
Still test against 5.6, but with allowed failures, and skip tests explicitly for features that require PHP >= 7.0.0
2019-05-30 12:11:49 +02:00
kraser
906bdc613c
Fix failure when parsing xlsx with drawing having double (redefined) … ( #945 )
...
* Fix failure when parsing xlsx with drawing having double (redefined) attributes
* Fix failure when parsing xlsx with drawing having double (redefined) attributes
2019-05-30 11:42:00 +02:00
Aleksandr Borovikov
53ac682ba7
Fix #956 : Incorrectly handled backslash-escaped space characters within number formats ( #957 )
...
Backslash-escaped space characted sometimes not converted to quoted strings, so formatted string contains extra slashes.
2019-05-30 11:37:48 +02:00
AlexPravdin
ebc0b56959
Fix #853 when loading and saving XLSX file with empty drawing cause c… ( #882 )
...
* Fix #853 when loading and saving XLSX file with empty drawing cause corrupted output file. Store empty drawing as unparsed entity and save it as is when saving the file.
* Fix code style
2019-05-30 10:38:03 +02:00
Harry Gulliford
0b3deeaac5
Add accounting number format style ( #974 )
2019-05-30 09:18:03 +02:00
Yigit Cukuren
cce6e5976f
Calculation :: Added switch function ( #983 )
2019-05-30 09:14:58 +02:00
Fräntz Miccoli
9a208b31d8
Fix a SUMIF warning when having different length of arrays provided as input
...
Closes #873
2019-05-26 20:58:00 +12:00
Mark Baker
170671c616
CS Fixes ( #962 )
2019-04-15 22:49:51 +02:00
phinor
98d1782bbb
Xls(x) Readers now respect the readBlankCells setting. ( #835 )
...
* Prevented reading of blank cells.
The "readEmptyCells" attribute is ignored when reading spreadsheets, resulting in memory bloat.
* Included a test file for Unit Testing
A file that contains 100 referenced cells, one of which contains data.
* New test file for reading in empty cells
* Added test for reading in a blank cell
* Updated CHANGELOG
* Changed "s to 's
Change required for code style compliance
* Further Code Style Changes
Removed spaces after variable, before array indices.
* Further Code Style Changes
* Further Code Style Changes
Removed additional spaces.
* Updated reader and tests.
2019-04-15 21:40:20 +02:00
Michael Roth
15abdf43ad
- Create unit test ( #944 )
...
- Add changelog entry for issue #700
2019-04-15 21:39:11 +02:00
Fräntz Miccoli
ccebf0f288
Fix VLOOKUP whose return was impacted by order for a $not_exact_match ( #854 )
...
* Highlight VLOOKUP bug with a new test
* Remove useless statements + fix VLOOKUP bug
Please not that we have still inconsistencies in Excel (See LOOKUP and
VLOOKUP.php test files)
* Base strtolower on our StringHelper in LookupRef
2019-04-15 21:37:23 +02:00
Fräntz Miccoli
8b589c4ef3
Fix MATCH an error was appearing when comparing strings against 0 (always true) + making a return statement a bit more explicit ( #855 )
2019-03-06 22:37:06 +01:00
Mark Baker
9b004b1e6a
Ignore escaped enclosures within an enclosure when inferring csv separator ( #906 )
2019-02-25 23:20:50 +01:00
Mark Baker
033ed16db5
Dde call safe handling ( #891 )
...
* Set handler for quoted text cells and DDE expressions in the Calculation engine
2019-02-18 22:56:32 +01:00
Patrick Brouwers
1c99f4999c
[Feature] Html reader improvements ( #884 )
...
* Extract character set, so we can convert to UTF-8 if required
* Set column width and row height when defined on tr/td
* Parse align and valign on td
* Specify number format of cell via html attribute
* Formatting of b, strong, i and em tags
* Inserting image in cell when using img tag in html
* Add applying inline styles: border, fonts, alignment, dimensions
* Add tests for applying inline styles
2019-02-16 23:11:16 +01:00
Adrien Crivelli
d0dea580ad
Fix a few Scrutinizer issues
2019-01-02 15:38:13 +11:00
GreatHumorist
699da09176
Fix time format for duration was incorrect
...
When using format `[h]:mm` it should convert to the "total hours:minutes"
Closes #666
Fixes #664
Fixes #446
Fixes #342
2019-01-02 13:17:52 +11:00
Mahmoud Abdo
86c635b3f5
Fix color from CSS when reading from HTML
...
In case we generate Spreadsheet from html file and the code
in file have text color in css "color:#FF00FF" it will showing
as black color because it will render like rgb content with } "FF00FF}"
So, we fix it by adding missing bracket "{".
Closes #831
2019-01-02 11:57:30 +11:00
Adrien Crivelli
e8c25c33cd
Fix unit tests for 2019
2019-01-01 17:48:07 +11:00
Philipp Kolesnikov
8918888e7c
libxml_disable_entity_loader() changes global state so it should be used as local as possible
...
Fixes #801
Closes #802
Closes #803
2019-01-01 17:25:24 +11:00
Fräntz Miccoli
294ba58dde
Exact match in VLOOKUP now returns first match
...
It was inconsistent with spreadsheet software before.
Closes #809
2018-12-15 17:42:07 +11:00
Fräntz Miccoli
db2621c4fe
Add tests for the LOOKUP function
...
We were performing operations to patch for missing $result_vector
even when one was defined, this was causing bugs on edge cases.
Fixes #796
Closes #816
2018-12-15 16:23:45 +11:00
Dennis Birkholz
e56fbe2745
Fix column names if read filter calls in XLSX reader skip columns
...
Fixes #777
Closes #778
2018-12-10 20:00:26 +11:00
Krzysztof Ruszczynski
12bf085c57
Custom color for pie and donut charts
...
This is an follow-up for #158
Fixes #768
2018-12-10 18:43:55 +11:00
Mark Baker
a5eb64c77f
Matrix ( #790 )
...
* Refactor Excel Matrix functions to use external Matrix library rather than JAMA
2018-11-29 22:25:31 +01:00
MarkBaker
3abb7ccb35
CS Complaining about not uisng $this->assertInternalType('object', $scanner);
2018-11-25 14:41:11 +01:00
MarkBaker
14159d985c
Coding standards
2018-11-25 14:33:01 +01:00
MarkBaker
41bcf9a21c
Support for additional callback in XML Security Scanner
2018-11-25 14:00:35 +01:00
MarkBaker
c708411529
Refactor scanner into base reader class
2018-11-25 12:14:54 +01:00
MarkBaker
abad49d426
Use factory for XMLcanner
2018-11-23 23:05:17 +01:00
MarkBaker
5854ce3738
phpcs cleanup
2018-11-20 08:18:35 +01:00
MarkBaker
7a06d71e1c
Add UTF-7 XXE Unit test data
2018-11-19 23:22:59 +01:00
MarkBaker
a4d97ba896
Clean handle charset in XXE scanner
2018-11-19 22:47:34 +01:00
Adrien Crivelli
2fce5c4706
Update PHP dependencies to fix security issues
...
This fix CVE-2013-5958 and also
1861e33fe0
2018-11-11 18:21:31 +11:00
Gabriel Caruso
b3877e59e4
Use dedicated PHPUnit assertions
2018-11-11 18:06:35 +11:00
Milan Davídek
3be06a5e87
Support overriding `DefaultValueBinder::dataTypeForValue()`
...
This allow to avoid overriding `DefaultValueBinder::bindValue()`
Fixes #735
2018-11-03 17:25:43 +11:00
Guillaume RODRIGUEZ
fdc224af7c
Fix print area parser for XLSX reader
...
XLSX workbook references may not contains quotes in print area
Fixes #733
Fixes #734
2018-10-28 14:37:05 +11:00
Laurent
79d86ef5cc
Csv reader avoid notice when the file is empty
...
Fixes #337
2018-10-28 14:16:53 +11:00
Jon Dufresne
5b3870c508
Prefer https:// URLs when available in docs & comments
...
Fixes #737
2018-10-28 13:55:00 +11:00
marcusblevin
98d10475f2
SUMIFS sum values only once
...
Values were summed multiple times if it matched several conditions
whereas it should only be summed once.
Fixes #704
Fixes #710
2018-10-28 13:09:08 +11:00
Sreten Ilić
ed6a3a0148
Support numeric condition in SUMIF, SUMIFS, AVERAGEIF, COUNTIF, MAXIF and MINIF
...
Fixes #683
Fixes #701
2018-10-28 12:47:53 +11:00
Paul Barton
813855b2b2
Fix CSV delimiter detection on line breaks
...
The CSV Reader can now correctly ignore line breaks inside
enclosures which allows it to determine the delimiter
correctly.
Fixes #716
Fixes #717
2018-10-21 18:23:55 +11:00
Adrien Crivelli
09eb05f367
OFFSET should allow omitted height and width
...
Commit 8dddf56
inadvertently removed the ability to omit the width
and height arguments to the OFFSET function. And #REF! is returned
because the function is validating that the new $pCell argument
is present. It is present, but it has been passed in the $height position.
We fixed this by always passing $pCell at the last position and filling
missing arguments with NULL values.
Fixes #561
Fixes #565
2018-10-21 17:45:02 +11:00
Biser Antonov
2c981e47a1
Added the DAYS() function
...
https://support.office.com/en-us/article/days-function-57740535-d549-4395-8728-0f07bff0b9df
2018-10-21 15:26:46 +11:00
MarkBaker
0ef1b55106
Need to version compare against PHP 7.2.99 for PHP 7.3.0 release candidates
2018-10-14 16:35:38 +01:00
MarkBaker
874467d7c1
DomPDF doesn't yet support PHP 7.3.0, so suppress tests for that combination of version and library dependency
2018-10-14 16:21:40 +01:00
bayzhanov
08b4456641
Xls file threw exception during open by Xls reader
...
Ignore some exception in property, if stream is empty
Fixes #402
Fixes #659
2018-10-07 18:49:01 +11:00
Scorty
ae9dd13aa0
Skip non numeric value in SUMIF
...
MS Excel skip non numeric values also. PhpSpreadsheet used to fail on string value with: Warning: A non-numeric value encountered.
Fixes #618
2018-10-07 17:24:23 +11:00