490 Commits

Author SHA1 Message Date
Andrii Dembitskyi
7aad52af4a
Merge e2609c9bef0f45b54cd9b60200f7c511f5df7c16 into 84596668410bea89d21aa9867b91e1550e359329 2022-05-26 15:55:26 +02:00
Adrien Loison
8459666841 Add "archived project" statement 2022-05-26 15:51:47 +02:00
Adrien Loison
ec8d53b13c Make builds reproducible
By committing composer.lock, we make sure that dependencies are locked to a given version.
This ensures that builds are reproducible and deterministic.

Also, fixes some phpstan issues, that appeared with the latest version of PHPStan.
2022-05-26 15:49:00 +02:00
larsbonczek
0739e044da Fix encoding of Content-Disposition header
URL-encode file name in Content-Disposition header for file download.

fixes box/spout#878
2022-03-26 16:37:15 +01:00
Andrii Dembitskyi
e2609c9bef
Merge branch 'master' into dx-more-helpful-exception-message 2022-03-18 05:25:51 -04:00
Rodrigo Azevedo
cc42c1d29f Use DateTimeInterface 2022-02-06 22:38:43 +01:00
Jörg Mönke
5926207012 Update GlobalFunctionsHelper.php
fix for php 8.1
2022-02-04 22:11:33 +01:00
Adrien Loison
550a6831f3 Update ci.yml
Launch CI on pull requests
2022-01-25 14:29:02 +01:00
Adrien Loison
6f1b67b39d PHPStan Level 4 2022-01-23 15:21:49 +01:00
Adrien Loison
ea0a67d283 Remove var_dump 2022-01-21 14:31:32 +01:00
Adrien Loison
e95e0eeefd PHPStan Level 3 2022-01-16 22:44:00 +01:00
Adrien Loison
64a09a748d More deprecations fixes 2022-01-13 23:04:26 +01:00
Adrien Loison
7517e5c4de Upgrade PHPUnit config 2022-01-13 23:04:26 +01:00
Adrien Loison
e75f6f7301 Fix PHP 8.1 deprecations 2022-01-13 23:04:26 +01:00
Adrien Loison
27c6845b4b Upgrade to PHP 8.1 2022-01-13 23:04:26 +01:00
Adrien Loison
0876851369
Merge branch 'master' into dx-more-helpful-exception-message 2022-01-13 15:06:53 +01:00
Adrien Loison
2499dc46b7 Integrate Coveralls 2022-01-13 14:46:46 +01:00
Adrien Loison
6b7366bb6f Upgrade PHP and dev dependencies
/!\ Removed PHP 7.2 support /!\

- PHPUnit 8 => 9 (+ fix the tests)
- PHP-CS-Fixer 2 => 3 (+ fix the code)
- Introduced PHP stan
2022-01-12 23:38:25 +01:00
Adrien Loison
6a10ec3586 Reduce number of jobs 2022-01-11 09:05:23 +01:00
Adrien Loison
9882bf0946 Fix errors on Windows 2022-01-11 09:05:23 +01:00
Adrien Loison
75c06807af Fix PHP Stan errors 2022-01-11 09:05:23 +01:00
Adrien Loison
0345b369c7 Fix tests with no locales + Apply CSFixer fixes 2022-01-11 09:05:23 +01:00
Adrien Loison
f8595e9d63 Setup Github actions 2022-01-11 09:05:23 +01:00
Andrii Dembitskyi
ca805bc50f Fix CS 2021-06-23 16:33:01 +03:00
Andrii Dembitskyi
c7f2612685 Preserve classname and PHP type together in error message 2021-06-23 16:32:27 +03:00
Andrii Dembitskyi
aef099faf3
Preserve classname and PHP type together in error message
Co-authored-by: Adrien Loison <adrilo@users.noreply.github.com>
2021-06-23 09:29:42 -04:00
Andrii Dembitskyi
8b3b832359 Use original cell value event if cell contain error to generate more helpful exception message (in case of objects, for example) 2021-06-22 16:15:40 +03:00
Andrii Dembitskyi
1a06aa624d Handle invalid (object) value in cell value while generating exception message - add classname to message 2021-06-22 16:15:32 +03:00
Adrien Loison
9533accd73 Create FUNDING.yml 2021-06-07 12:33:43 +02:00
Adrien Loison
9bdb027d31 Update documentation with number format v3.3.0 2021-05-14 23:18:09 +02:00
Adrien Loison
76017f0949 Skipped cells are in wrong order
This only happens when no sheet's dimension is specified.
When filling empty cells with empty strings, we push these new cells with the correct cell index but they are added at the end of the cells array (normal PHP behavior). This means that we were going from `{[0] => 'A', [2] => 'C'}` to `{[0] => 'A', [2] => 'C', [1] => ''}`. We therefore need to sort the array to get the values in the correct order ( `{[0] => 'A', [1] => '', [2] => 'C'}`).
2021-05-14 23:01:36 +02:00
Adrien Loison
fde8a495ca Inline strings can contain multiple value nodes
We were working under the assumption that XLSX's inline strings only had a single value node (`<t>`). This is incorrect.
To get the actual value of an inline string node, we need to concatenate the value of all its child nodes.
2021-05-14 22:36:34 +02:00
Adrien Loison
69eeeff478 Remove var_dump 2021-05-14 15:17:30 +02:00
Adrien Loison
2ff515c306 Support for strict OOXML
There are 2 types of OOXML format: transitional and strict. Transitional is what's mostly used but some softwares still allow XLSX to be generated using the strict OOXML format.
In this format, namespaces of the XML files are different: `http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings` is replaced by `http://purl.oclc.org/ooxml/officeDocument/relationships/sharedStrings` for instance. To support both formats, Spout needs to be able to look for both.
2021-05-13 12:16:20 +02:00
Toby Allen
0837d49c2b Remove unneeded comma 2021-05-10 10:04:14 +02:00
Toby Allen
110876e32c Some small grammar changes 2021-05-10 10:04:14 +02:00
Adrien Loison
8c1f0cc447 Floats must not be stored as locale dependent
Floats are currently stored formatted per the locale setting. This leads to different values being written whether the locale uses "." or "," for the decimal point for instance. This poses a problem as floats must be stored using "." as the decimal point to be valid.
This commit ensures that the floats are stored correctly by forcing the formatting of the value.
2021-05-05 20:43:02 +02:00
Antoine Lamirault
eb84ec9364 Rename ManagedStyle to PossiblyUpdatedStyle and add documentation 2021-03-30 19:42:21 +02:00
Antoine Lamirault
8a17d6c71f Remove rowStyle reference and replace it by new RegisteredStyle class 2021-03-30 19:42:21 +02:00
Antoine Lamirault
c6f596c776 New code review fixs 2021-03-30 19:42:21 +02:00
Antoine Lamirault
11d91e1740 Code review changes 2021-03-30 19:42:21 +02:00
Antoine Lamirault
197fb9987a Register style can be skipped when already registered 2021-03-30 19:42:21 +02:00
Antoine Lamirault
a58b340835 Empty style on cell 2021-03-30 19:42:21 +02:00
Antoine Lamirault
57b6e87a65 Begin optimize xlsx write 2021-03-30 19:42:21 +02:00
yiranzai
91f756be0b remove custom headers 2021-03-18 20:05:10 +01:00
yiranzai
03e1ce438a Fixed Code Style 2021-03-18 20:05:10 +01:00
yiranzai
df9d96366f Fixed WriterAbstract::openToBrowser meet RFC6266 2021-03-18 20:05:10 +01:00
Andrii Dembitskyi
0f20c99a7f Fix constant usage in example v3.2.0 2021-02-10 10:53:55 +01:00
jmsche
9ab0b10a0f Contributing: added info about code style 2021-02-09 17:39:42 +01:00
jmsche
ed9322e309 Shorter (relevant) diff by php-cs-fixer for Travis CI 2021-02-09 13:58:05 +01:00