Jens Hassler
55209424b2
support "showZeros" setting in Excel advanced worksheet options ( #1199 )
...
* support "showZeros" setting in Excel advanced worksheet options
* add changelog entry
* change isShowZeros to getShowZeros
2019-10-28 21:52:30 +01:00
Mark Baker
43b760501a
Text data locale for fixedformat ( #1220 )
...
* Apply Locale settings to result of FIXEDFORMAT method call
2019-10-28 20:37:12 +01:00
MarkBaker
bc8dd75030
Merge remote-tracking branch 'origin/master'
2019-10-28 18:52:26 +01:00
David Arenas
89066d2568
Bugfix/remove column out of range ( #1197 )
...
* Call garbage collector after removing a column
Otherwise callers of getHighestColumn get stale values
* Update changelog
* Fix remove a column out of range removes the last column
Given:
+---+---+
| A | B |
+---+---+
Attempting to remove 'D', should not alter the worksheet
* Avoid side effects when trying to remove more columns than exists
2019-10-28 18:52:06 +01:00
MarkBaker
e469b00508
Merge remote-tracking branch 'origin/master'
2019-10-28 18:45:12 +01:00
David Arenas
b82afe37dc
Bugfix/invalid cached highest column after column removed ( #1195 )
...
* Call garbage collector after removing a column
Otherwise callers of getHighestColumn get stale values
* Update changelog
2019-10-28 18:42:56 +01:00
MarkBaker
ddbd8ad0f5
Merge branch 'bugfix/invalid-cached-highest-column-after-column-removed' of https://github.com/darenas31415/PhpSpreadsheet
2019-10-28 18:38:26 +01:00
Marc Würth
311a34406e
Do not export .github folder ( #1211 )
2019-10-19 13:18:28 +02:00
David Arenas
edcdd8fead
Update changelog
2019-10-11 01:11:44 +01:00
David Arenas
703c670fbf
Call garbage collector after removing a column
...
Otherwise callers of getHighestColumn get stale values
2019-10-11 01:01:45 +01:00
Boris Momčilović
9d6736d303
Writer: Xlsx: Worksheet: handle PHP 7.4 deprecation notice
2019-09-20 16:22:08 -07:00
MarkBaker
f7d2ebac40
Minor fix to operator check
2019-09-20 16:22:08 -07:00
MarkBaker
a691516664
Improvements to default value binder
2019-09-20 16:22:08 -07:00
MarkBaker
b894b98a2c
Test fixes for PHP 7.4 stricter behaviour
2019-09-20 16:22:08 -07:00
Adrien Crivelli
8972d370a6
Merge pull request #1113 from PHPOffice/Further-Test-Refactoring
...
Further test refactoring
2019-09-20 16:15:29 -07:00
Adrien Crivelli
ee5134a954
Merge branch 'master' into Further-Test-Refactoring
2019-09-20 16:04:36 -07:00
Adrien Crivelli
a972943ac5
Mention PHP version change in changelog
2019-08-24 12:42:22 -07:00
Adrien Crivelli
48ccdc2716
Prepare for next version
2019-08-17 15:28:41 -07:00
Adrien Crivelli
09ab584a23
Merge tag '1.9.0'
...
1.9.0
### Added
- When <br> appears in a table cell, set the cell to wrap [#1071 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1071 ) and [#1070 ](https://github.com/PHPOffice/PhpSpreadsheet/pull/1070 )
- Add MAXIFS, MINIFS, COUNTIFS and Remove MINIF, MAXIF [#1056 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1056 )
- HLookup needs an ordered list even if range_lookup is set to false [#1055 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1055 ) and [#1076 ](https://github.com/PHPOffice/PhpSpreadsheet/pull/1076 )
- Improve performance of IF function calls via ranch pruning to avoid resolution of every branches [#844 ](https://github.com/PHPOffice/PhpSpreadsheet/pull/844 )
- MATCH function supports `*?~` Excel functionality, when match_type=0 [#1116 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1116 )
- Allow HTML Reader to accept HTML as a string [#1136 ](https://github.com/PHPOffice/PhpSpreadsheet/pull/1136 )
### Fixed
- Fix to AVERAGEIF() function when called with a third argument
- Eliminate duplicate fill none style entries [#1066 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1066 )
- Fix number format masks containing literal (non-decimal point) dots [#1079 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1079 )
- Fix number format masks containing named colours that were being misinterpreted as date formats; and add support for masks that fully replace the value with a full text string [#1009 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1009 )
- Stricter-typed comparison testing in COUNTIF() and COUNTIFS() evaluation [#1046 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1046 )
- COUPNUM should not return zero when settlement is in the last period [#1020 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1020 ) and [#1021 ](https://github.com/PHPOffice/PhpSpreadsheet/pull/1021 )
- Fix handling of named ranges referencing sheets with spaces or "!" in their title
- Cover `getSheetByName()` with tests for name with quote and spaces [#739 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/739 )
- Best effort to support invalid colspan values in HTML reader - [#878 ](https://github.com/PHPOffice/PhpSpreadsheet/pull/878 )
- Fixes incorrect rows deletion [#868 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/868 )
- MATCH function fix (value search by type, stop search when match_type=-1 and unordered element encountered) [#1116 ](https://github.com/PHPOffice/PhpSpreadsheet/issues/1116 )
- Fix `getCalculatedValue()` error with more than two INDIRECT [#1115 ](https://github.com/PHPOffice/PhpSpreadsheet/pull/1115 )
- Writer\Html did not hide columns [#985 ](https://github.com/PHPOffice/PhpSpreadsheet/pull/985 )
2019-08-17 15:27:37 -07:00
Adrien Crivelli
8dea03eaf6
1.9.0
2019-08-17 15:24:35 -07:00
Claudio Galdiolo
74bc0b826d
reword repeated text
2019-08-17 13:49:27 -07:00
Adrien Crivelli
05081c4acf
Standardize changelog to the simplest format
2019-08-17 13:31:40 -07:00
Andrey Dovbyshko
ed25365531
Fix Writer\Html did not hide columns
...
Closes #985
2019-08-17 13:26:28 -07:00
yunjusu
bbbfdb86a0
Fix `getCalculatedValue()` error with more than two INDIRECT
...
Closes #1115
2019-08-17 12:59:30 -07:00
Nathanael Noblet
95c8bb9918
Allow HTML Reader to load from string
...
We often want to export a table as an excel sheet. The system renders the
html and it seems like a waste of time to write it to the file system to
use the reader. This allows us to render the html and then just pass it to
a reader
Closes #1136
2019-08-17 12:54:22 -07:00
Adrien Crivelli
34675bdf5d
Remove dead code
2019-08-12 10:04:40 -07:00
Rolands Usāns
9df68f12e2
MATCH function fix
...
- fix boolean search
- add support for excel expressions `*?~`
Fixes #1116
Closes #1122
2019-08-11 20:11:36 -07:00
Adrien Crivelli
2166458de3
Duplicated call of strtoupper
2019-08-11 19:41:10 -07:00
Adrien Crivelli
7cca8d2bae
Consistent format name and value
2019-08-11 19:39:49 -07:00
rumbleh
1e1118d9e0
Update NumberFormat.php
...
Fix FORMAT_DATE_DDMMYYYY from 'dd/mm/yy' to 'dd/mm/yyyy'
2019-08-11 19:39:49 -07:00
Alex Pravdin
5fe0a796c7
Fix incorrect cache clearance on row deletion
...
Fixes #868
Closes #871
2019-08-11 18:36:07 -07:00
Fräntz Miccoli
0b387e767e
Branch pruning around IF function calls to avoid resolution of every branches
...
Calculation engine was resolving every function by first resolving its arguments
including IFs, this was causing significant over evaluation when IFs were used
as it meant for every case to be evaluated.
Introduce elements to identify ifs and enable better branch resolution
(pruning). We tag parsed tokens to associate a branch identifier to them.
Closes #844
2019-08-11 18:23:47 -07:00
MarkBaker
7219e665a0
As always, falling foul of codesniffer
2019-07-30 19:07:24 +02:00
MarkBaker
4c9d51c11b
Add Associative indexing to dataprovider for DATE
2019-07-30 19:00:00 +02:00
MarkBaker
aa35a2f85f
More refactoring Excel of Calculation Function Unit Tests
2019-07-30 18:54:37 +02:00
Mahmoud Abdo
785705b712
Best effort to support invalid colspan values in HTML reader
...
Closes #878
2019-07-27 23:31:23 -07:00
Christian WERNER
d6b3514431
Cover `getSheetByName()` with tests for name with quote and spaces
...
Fixes #739
Closes #893
2019-07-27 22:46:41 -07:00
MarkBaker
f14e5ea837
More refactoring Excel of Calculation Function Unit Tests
2019-07-27 16:35:27 +02:00
MarkBaker
905a697639
More work on refactoring Excel Calculation Function Unit Tests
2019-07-27 16:02:58 +02:00
MarkBaker
0b2dcae1be
Merge remote-tracking branch 'origin/master'
2019-07-27 14:29:06 +02:00
Mark Baker
26e87c45ae
Test refactoring ( #1112 )
...
* Merge branch 'master' of C:\Projects\PHPOffice\PHPSpreadsheet\develop with conflicts.
* Argument fix
* Text Test functions refactored into individual test files
* Codestyle (line at eof)
* docblocks
2019-07-27 14:28:16 +02:00
MarkBaker
dbb83ab184
Merge remote-tracking branch 'origin/master'
2019-07-26 22:22:20 +02:00
Mark Baker
1c6f0b8a9d
Improved tests ( #1110 )
...
* Merge branch 'master' of C:\Projects\PHPOffice\PHPSpreadsheet\develop with conflicts.
* New statistical tests
* Sniffs
* Additional statistical function unit tests
* Additional statistical function unit tests
* Fix case-sensitivity
* Fix HARMEAN code logic
* Unit tests refactored into individual files for all logical functions
Implemented IFNA()
* Fix silly typo
* NOT needs ...args to allow for test when no argument passed
* Codestyle
* Use instance asserts
2019-07-26 22:21:17 +02:00
MarkBaker
13149b7ea7
Merge remote-tracking branch 'origin/master'
2019-07-25 21:03:47 +02:00
Mark Baker
aaf996a165
Refactor engineering tests ( #1106 )
...
* Merge branch 'master' of C:\Projects\PHPOffice\PHPSpreadsheet\develop with conflicts.
* Bessels, and set some date tests to defined/named arguments
* Fix test class naming
* Names arguments for math/trig tests
* Docblock updates
* More engineering function unit test refactorings
* More engineering function unit test refactorings. This time, moving on to the Complex engineering functions
* Fix ImConjugate test
* Fix parseComplex test
* Fix parseComplex test
* More of the complex number function unit tests refactored
* Finish refactoring of the complex number function unit tests
* Newer phpunit assertions
* Add parsecomplex unit test back until we're ready to drop the deprecated function; but as it doesn't use the specified data provider at all, drop reference to that
2019-07-25 21:02:41 +02:00
MarkBaker
7502320ce3
Merge remote-tracking branch 'origin/master'
2019-07-25 19:39:23 +02:00
Adrien Crivelli
fa54ca79a3
Migrate away from deprecated PHPUnit asserts
2019-07-25 10:15:53 -07:00
Adrien Crivelli
b2070fd181
Upgrade to phpunit 7.5
2019-07-24 23:45:43 -07:00
Adrien Crivelli
7faee3d6cc
Take advantage of PHP 7.1 syntax
2019-07-24 23:43:28 -07:00
Adrien Crivelli
454d942c13
Drop PHP 5.6 and 7.0
...
This is according to our formal, published, policy to only support
eol PHP after 6 months.
See https://phpspreadsheet.readthedocs.io/en/latest/#php-version-support
2019-07-24 23:12:45 -07:00