Antoine Lamirault
efcf35be50
Add phpstan until level 7
2021-09-18 18:37:45 +02:00
Antoine Lamirault
540667870a
Merge branch 'master' of github.com:box/spout into add-phpstan
...
Conflicts:
.travis.yml
CONTRIBUTING.md
composer.json
src/Spout/Common/Entity/Cell.php
tests/Spout/Writer/ODS/WriterTest.php
2021-09-18 18:14:45 +02:00
Antoine Lamirault
bfb7c2c68f
Add phpstan until level 7
2021-09-18 18:09:14 +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
57b6e87a65
Begin optimize xlsx write
2021-03-30 19:42:21 +02:00
jmsche
c29d1877b8
Fixed code style (probably due to recent php-cs-fixer version)
2021-02-08 22:03:03 +01:00
drowe
eb88bb4c3a
Automated native_function_invocation fixes
2019-11-18 12:17:27 +01:00
Adrien Loison
9f4c094fa0
Cell alignment
...
This PR adds support for cell alignment for XLSX and ODS files.
You can now align the content of the cells this way:
```
use Box\Spout\Common\Entity\Style\CellAlignment;
use Box\Spout\Writer\Common\Creator\Style\StyleBuilder;
$style = (new StyleBuilder())
->setCellAlignment(CellAlignment::RIGHT)
->build();
...
```
Possible cell alignments are: LEFT, RIGHT, CENTER and JUSTIFY.
2019-10-27 18:58:56 +01:00
Alexander Rakushin
40aecd7b90
Added support for cell formats when writing Excel files
2019-10-01 20:08:54 +00:00
Adrien Loison
f5168114d0
Merge Reader and Writer entities
...
Merged Cell/Row/Style entities
2017-11-19 02:54:17 +01:00
Adrien Loison
4d1d1c1e87
various improvements
2017-11-19 02:41:07 +01:00
Adrien Loison
68a96367a8
Remove StyleMerger from RowManager
2017-11-18 21:19:31 +01:00
Adrien Loison
78b6639480
Make XLSX reader return Row objects
2017-11-18 20:53:22 +01:00
Adrien Loison
ddfa40e8b3
StyleMerger and RowManager changes
...
Move DI of StyleMerger to get rid of business logic in the entities Cell and Row
Simplify RowManager
2017-11-10 22:45:57 +01:00
Adrien Loison
8aec9ea992
Apply default row style in WorkbookManager
...
Instead of doing it in the Writer
2017-11-05 14:13:22 +01:00
Adrien Loison
2d2151ac8d
Split Writer EntityFactory into interal and external ones
2017-11-05 13:04:03 +01:00
Adrien Loison
7274226b75
Row objects and Cell styling
...
This commit introduces Row and Cell entities, that will replace the arrays passed in previously.
It also adds support for Cell styling (instead of Row styling only).
2017-11-05 02:12:28 +01:00
Adrien Loison
b968513cb9
Fix code style
2017-09-06 00:33:43 +02:00
Adrien Loison
4ec3a21170
Random DI improvements ( #458 )
...
* Add random DI improvements
Fixing things that were previously missed
* Split InternalFactory into Manager and Helper factories
2017-08-27 01:44:20 +02:00
Adrien Loison
b7e46740ce
Refactor readers for better di ( #457 )
...
* Refactor readers to get a proper DI
Similar to what was done with writers, readers also needed to be updated to match the new way of doing things.
This commits promotes a better DI (factories, injection through constructors).
* Escapers should not be singletons
Instead, they should be proper object that can be injected where needed.
2017-08-27 00:01:17 +02:00
Adrien Loison
3bb4fd3d48
Move Sheet to Common/Entity ( #438 )
...
... and introduce a SheetManager
2017-05-30 16:49:07 +02:00
Adrien Loison
cc9a0b526b
Refactory Writer Styles to match new code organization ( #433 )
...
Decomposed old StyleHelper into StyleManager, StyleRegistry and StyleMerger.
2017-05-30 13:05:18 +02:00
Adrien Loison
238756ab6e
Move Style classes into Common folder ( #432 )
2017-05-30 00:56:50 +02:00
Adrien Loison
c4e25a168e
Move entities and managers back to Common ( #431 )
2017-05-29 23:28:10 +02:00
Adrien Loison
69b091b37c
Move OptionManager from Common/Manager to Manager ( #428 )
2017-05-29 22:34:25 +02:00
Adrien Loison
a366d0d0af
Introduce an options manager for all writers ( #423 )
...
This will improve the management of options and simplify some methods' signatures.
This commit will also help moving the code to a better state regarding Dependency Injection.
2017-05-24 13:17:50 +02:00